Open lainz opened 4 years ago
Good idea
Thanks. I've used that feature a lot of times in Corel Draw, here a small tutorial and screenshots https://www.coreldraw.com/en/tips/photo/bulk-edits/batch-resize-images/
I wonder if this could be added to the image list. It is a bit the same idea.
I've added script support for image list. So one can use that to make a script to process many files: https://github.com/bgrabitmap/lazpaint/blob/dev-lazpaint/scripts/test/test_imagelist.py
A minimal script to apply on the files currently in the image list would be:
from lazpaint import imagelist, image
for filename in imagelist.iterate(True):
new_filename = image.change_file_extension(filename, "png")
image.export(file_name=new_filename, validate=True, overwrite=False, skip_options=True)
Also one can run a script from command line, for example:
./lazpaint ~/Images/some_image.jpg -script some_script.py
I leave the ticket open because the window for doing that would be a nice addition.
Ok Thanks
A dialog that has this features:
For example, you add an entire folder of images, choose a python script to execute to these images, and an output folder. Execute button will process all images with that script, when the script finishes it saves a copy of the processed image.
Like for example: do resample a folder with .png images to 50% of its width and height and save as .jpg (like for creating thumbnails). Another use can just be no script and just change file format for all images in a folder.