Zizi64 wrote:...
John_Ha wrote:1. Use IrfanView to batch resize
..
I tried making a macro, but the action wasn't recorded.
Zizi64 wrote:I tried making a macro, but the action wasn't recorded.
You must WRITE your macro (based on the API functions) if you want to work efficiently with the macros.
Zizi64 wrote:https://forum.openoffice.org/en/forum/viewtopic.php?f=9&t=34544
Check Charlie Young's macro code in the linked topic.
Nemesis wrote:I don't know the command to set the original size, and the code is above my understanding..
<draw:frame draw:z-index="0" draw:name="Image 1" draw:style-name="gr1" draw:text-style-name="P1" svg:width="205.69mm" svg:height="292.24mm" svg:x="13.85mm" svg:y="124.92mm">
<draw:image xlink:href="Pictures/1000000000000B200000085887098DB214D00F46.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" loext:mime-type="image/jpeg">
<text:p/>
</draw:image>
</draw:frame>
<draw:frame draw:z-index="1" draw:name="Image 2" draw:style-name="gr1" draw:text-style-name="P1" svg:width="784.15mm" svg:height="567.36mm" svg:x="13.85mm" svg:y="451.59mm">
<draw:image xlink:href="Pictures/1000000000000B200000085841BC8802082C6B82.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" loext:mime-type="image/jpeg">
<text:p/>
</draw:image>
</draw:frame>
Edit: Edit to correct statement. Note that images in a spreadsheet are located relative to the page or cell location and are not anchored to cell content so images will not move if you sort data. But, if you anchor to a cell and add a row so the cell moves, the image will move. See the Calc Manual for details. |
John_Ha wrote:Nemesis wrote:I don't know the command to set the original size, and the code is above my understanding..
(see the tutorial)
John_Ha wrote:The comment applies to regular expressions. As you cannot understand macros do it a different way you can understand.
However, I think it is all moot. Does a sort move the images when the data moves? It does not move the images in my test file.
Nemesis wrote:If an image is anchored to a cell, it should move when the cell is moving..
.. At least in my pretty little world...
If an image is anchored to a cell, it should move when the cell is moving..
.setPropertyToDefault
oItem.Graphic.Size100thMM.Width
oItem.Graphic.Size100thMM.Height
oItem.Size.Width
oItem.Size.Height
Users browsing this forum: Google [Bot], mike.stirton and 8 guests