qsniyg / maxurl

Finds larger/original versions of images and videos
https://qsniyg.github.io/maxurl/
Apache License 2.0
1.13k stars 70 forks source link

Add option to choose formats #761

Open ghost opened 3 years ago

ghost commented 3 years ago

I think you should add images like https://johnlewis.scene7.com/is/image/JohnLewis/004113259?scl=1&fmt=png-alpha to possibly upscaled images, because they contain word scl in url which I think means scaled. So proper url without scaling would be: https://johnlewis.scene7.com/is/image/JohnLewis/004113259?fmt=png-alpha 1st file is 4,59 MB and 2nd file is 2,36 MB. Also can you allow us to choose format, for example I wanna webp instead of png because it would mean less size, almost same quality, in this case 124 kB. Webp is anyways most efficient format, just not the highest quality one.

qsniyg commented 3 years ago

From what I can tell, scl=1 means that it's not upscaled (scale=1). Without it, it will actually downscale the image from its original resolution. Good idea about webp, I think I'll add a generic option like "Prefer image format", that will be implemented per-rule if applicable.