[fanbox] Download original images instead of re-samples
Multiple requests:
- Download the original instead of a re-sample for the post's preview image.
- Download
background(same as for Pixiv) - Download
promoteimages (they are in the artist's descriptions, for example:https://tanimabank.fanbox.cc/) - Download
planimages (right column with plans) avatarby the way.
In all case download the original: just remove /c/1620x580_90_a2_g5 from the URL.
It's the same thing as I already suggested for Pixiv background image here.
For example, for this https://msmspc.fanbox.cc/posts/3950590 it downloads a 1200x630 image (193902 bytes) instead of the original image with 2112x1108 dimension (544739 bytes).
One more: https://bginga.fanbox.cc/posts/4106855.
In this case https://dksha19.fanbox.cc/posts/4142771 it seems that that the default image (with /c/1620x580_90_a2_g5 in the URL) is just up-scaled a bit.
Do you have a freely accessible link where its downloading resamples instead of original? I just checked some posts and it doesn't happen for me (probably because fanbox has multiple ways of embedding images which need to be handled differently...).
Do you have a freely accessible link where its downloading resamples instead of original?
For example, for this
https://msmspc.fanbox.cc/posts/3950590it downloads a 1200x630 image (193902 bytes) instead of the original image with 2112x1108 dimension (544739 bytes).
The main image(s) (attachment) are paid-walled, but I talk (in this case) about the post's image (a "preview"), which is free-available.
Used resize/crops:
/c/1620x580_90_a2_g5for thebackgroundimage/c/400x400_90_a2_g5for thepromoteimages/c/160x160_90_a2_g5for theavatarimage/c/936x600_90_a2_g5for theplanimages/c/1200x630_90_a2_g5for the post's previews
Implemented your 1st request (the original sized cover image), see #2784