Ubooquity-Themes icon indicating copy to clipboard operation
Ubooquity-Themes copied to clipboard

Remove Unlimited Sash from folder.jpg Files

Open flips22 opened this issue 4 years ago • 2 comments

First of all thank you for your work on this! This really makes ubooquity look great!

One small complaint I had was the unlimited sash on each icon, I thought it takes away from the look a bit. I was looking at the comixology web site code and found that you can easily remove the sash with a change to the jpg file that you request.

Here's an example of a coimic that isn't unlimited:

Skyward not unlimited: https://images-na.ssl-images-amazon.com/images/S/cmx-images-prod/Series/113966/113966.SX360_QL80_TTD.jpg

You can see the jpg file is quit simple.

On comics that are unlimited they add a buch of stuff in the middle of the filename to add the sash... (You can tell I'm not a coder... :D )

Saga with sash: https://images-na.ssl-images-amazon.com/images/S/cmx-images-prod/Series/7587/7587.SX360_CLs|360,360|cu/cmx-cu-sash-lg.png|0,0,361,361 208,208,152,152_QL80_TTD.jpg

You can remove the sash by simplifying the filename.

Sash removed: https://images-na.ssl-images-amazon.com/images/S/cmx-images-prod/Series/7587/7587.SX360_QL80_TTD.jpg

Image file with sash removed 7587.SX360_QL80_TTD.jpg

Another example:

Savage Dragon with sash: https://images-na.ssl-images-amazon.com/images/S/cmx-images-prod/Series/739/739.SX360_CLs|360,360|cu/cmx-cu-sash-lg.png|0,0,361,361 208,208,152,152_QL80_TTD.jpg

Sash removed:

https://images-na.ssl-images-amazon.com/images/S/cmx-images-prod/Series/739/739.SX360_QL80_TTD.jpg

Another Example:

1602: Witch Hunter Angela (2015) With sash: https://images-na.ssl-images-amazon.com/images/S/cmx-images-prod/Series/43474/43474.SX360_CLs|360,360|cu/cmx-cu-sash-lg.png|0,0,361,361 208,208,152,152_QL80_TTD.jpg

1602: Witch Hunter Angela (2015) Sash removed: https://images-na.ssl-images-amazon.com/images/S/cmx-images-prod/Series/43474/43474.SX360_QL80_TTD.jpg

I won't even attempt to suggest how to modify your code, but hopefully this would be an easy change that you could make. Thanks!!!

flips22 avatar Apr 26 '20 19:04 flips22

removing the .SX360_QL80_TTD will also return the full size image. I would suggest removing everything between the number and .jpg to get the best quality image.

yakk0 avatar Sep 23 '20 19:09 yakk0

removing the .SX360_QL80_TTD will also return the full size image. I would suggest removing everything between the number and .jpg to get the best quality image.

Actually, best quality image is retrieved when using QL100.jpg, since QL stands for quality. If QL is omitted we get full size image but not full quality.

PapaiJarda avatar Feb 08 '21 11:02 PapaiJarda