Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AlttiRi opened this issue Jul 22, 2022 · 3 comments
Open

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

AlttiRi opened this issue Jul 22, 2022 · 3 comments

Comments

@AlttiRi
Copy link

AlttiRi commented Jul 22, 2022

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
Copy link
Contributor

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
Copy link
Author

AlttiRi commented Jul 22, 2022

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:

  • /c/1620x580_90_a2_g5 for the background image
  • /c/400x400_90_a2_g5 for the promote images
  • /c/160x160_90_a2_g5 for the avatar image
  • /c/936x600_90_a2_g5 for the plan images
  • /c/1200x630_90_a2_g5 for the post's previews

@thatfuckingbird
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants