I've always been a big fan of squoosh, the web app that allows you to compress an image in several formats without losing much quality, but it does not work properly on mobile — on iOS, at least.
That's a problem when I want to share pictures taken from the phone camera, since they are large.
So, unhappy with apps on the App Store, I discovered a-Shell, an app that allows you to run shell commands on your iPhone… including magick!
So I spent too much time created a Shortcut that allows to:
- choose an image from Apple Photos app
- resize it and compress it (
-resize 1500x1500 -strip -interlace JPEG -sampling-factor 4:2:0 -define jpeg:dct-method=float -quality 75
) - copy it to the clipboard
- (removes the temporary files, of course)
So the compressed image can be just pasted anywhere, e.g. on Phanpy.
Here is the Shortcut link for anyone interested: https://www.icloud.com/shortcuts/486776b73d554396a7ace51e18984a0e
