Huluti/Curtail

Ability to resize by setting a maximum resolution or width/height

Opened this issue · 1 comments

To be an alternative to GIMP or squoosh.app for web assets preparation (which are painful because both of those tools do not do batch encoding, and managing files one by one is a huge pain), I would need the ability to resize down the images' resolution at the same time as we are compressing them, in batch. Essentially tell the app "this is the maximum dimension I want in width or height, figure it out while preserving aspect ratio"

When i want to share/upload/send some photos (in JPG-format), they usually have a very high resolution (>3840x2160).
So i usually resize them to a smaller resolution (with linear interpolation), to make the filesize much smaller.
It would be nice if Curtail could do both in one step, so i don't need 2 apps to make the filesize of my images small enough.

An example:
The difference in filesize between an image with original resolution (about 4600 x 3450) and a resized image (2880 x 2160), after using Curtail to compress both images (lossy) as JPG with quality set to 90:
2.0 MB and 820 KB.
The image-quality was almost identical when displayed at the same display-size (that is not larger than the smaller image).


I think an option to reduce (but never increase) image-resolution to a chosen maximum resolution for the shortest side of the image, would be a good and simple setting.
Using the shortest side basically lets one choose the amount of detail to keep.
The aspect-ratio should always be the original aspect-ratio.

I think an on/off-toggle and a number-input-box with a preset-menu would be ideal:

[Reduce image resolution: (on/off)]
[Maximum Resolution of shortest side: (12345 | v )]

  • 720 (mobile-phone)
  • 1080 (monitor)
  • 1440
  • 2160
  • 4320 (8K-TV)

"12345" being a number-input, "v" opening some preset menu; not sure what kind of menu, though.
On a desktop-system i'd use a dropdown-list, but for mobile-phones a pop-up-menu seems to be better, i guess.
The preset-values i suggested here are common on many modern displays.
The input-box should open a numbers-only-keyboard on mobile devices.

Though a simple [12345 | - | + ] setting would be good enough; but it's nice to recommend some values; especially for people who just need their images to fit into an E-Mail and don't (want to) know about technical stuff.