mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
10.76k stars 885 forks source link

[fanbox] Download original images instead of re-samples #2775

Open AlttiRi opened 1 year ago

AlttiRi commented 1 year ago

Multiple requests:

  1. Download the original instead of a re-sample for the post's preview image.
  2. Download background (same as for Pixiv)
  3. Download promote images (they are in the artist's descriptions, for example: https://tanimabank.fanbox.cc/)
  4. Download plan images (right column with plans)
  5. avatar by 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.

thatfuckingbird commented 1 year ago

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...).

AlttiRi commented 1 year ago

Do you have a freely accessible link where its downloading resamples instead of original?

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).

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:

thatfuckingbird commented 1 year ago

Implemented your 1st request (the original sized cover image), see #2784