08-01-2018, 09:01 PM
(08-01-2018, 12:53 PM)Ofnuts Wrote: "Does nothing": files are not updated? Or files are changed but the image has the same size?
You can also use gimp-message to display the values of width/height just before resizing.
Thanks for the reply. The image is not being resized.
I ran the script and it turns out it is actually changing the file (I'm just testing on one for now, in a folder). I ran it today and the file says date modified of August 1st, however the dimensions of the image did not change at all.
I added some gimp-message statements and the intended new width and height are proper multiples of 4, so it seems the issue is with these lines:
Code:
(gimp-image-resize image width height 0 0)
(gimp-file-save RUN-NONINTERACTIVE image drawable filename filename)
(gimp-image-delete image)