-
Notifications
You must be signed in to change notification settings - Fork 1
File parameters
These parameters control the file input/output!
Input file path. If a folder is specified, it will convert all of the images in that folder.
(COMING SOON) If the format parameter is "gif" and the -fps parameter is specified, it will create a GIF using the frames in the folder.
(COMING SOON) If the input is a GIF and the format parameter is "gif", it will glitch the GIF, otherwise it picks the first frame in the GIF and glitches that.
Output file path. If a folder is specified, multi-file conversions will be written to it.
This parameter has special behavior:
- If an output path is a folder (no extension) but the input is a file (has extension), the output will be written in the output folder as "output.png".
- If the input path is a folder, -output will direct all of the images to the specified folder.
-
If the output is a folder, the input is a GIF and the format is not a GIF, the GIF's frames will be glitched and written to the folder.gif support comes later -
If the output isn't a folder in that case, the default output is ignored, and output will be in "(gif_name)/(frame).(format)"gif support comes later If the output is a folder, but the folder does not exist, the images will be written to "(input_folder)_out/(frame).(format)"
future me here: i don't actually remember if the crossed-out special behavior works, i've barely tested/developed those, sorry
Output image format. GIF support will come later when someone can actually comprehend the awfulness that is the GIF file format, and make it easy for the rest of us to use it.
Currently, there are 3 accepted values for -format: "png", "jpg", and "bmp".
If the input image is an APNG (animated .png), the -format value will be ignored! The output will be an APNG.
If the format is JPG, this will be its input JPG quality.
This (and -oquality) doesn't work for PNG/BMP/APNG.
NOTE: I haven't actually tested this, probably doesn't work lol
If the format is JPG, this will be its output JPG quality.
NOTE: I haven't actually tested this, probably doesn't work lol