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

Option to download Full-Size images #1593

Open
Bo26fhmC5M opened this issue Oct 15, 2024 · 1 comment
Open

Option to download Full-Size images #1593

Bo26fhmC5M opened this issue Oct 15, 2024 · 1 comment

Comments

@Bo26fhmC5M
Copy link

Bo26fhmC5M commented Oct 15, 2024

Is your feature request related to a problem? Please describe.

I need an option to download the href link that the image points to (the full size image) without downloading the image itself that is displayed.

<a href="https://example.com/c3ef05d58.png?type=orig" target="_blank">
<img src="//example.com/c3ef05d58.png" width="832" height="1216" loading="lazy">
</a>

For example, instead of downloading the src link of an img tag surrounded by an a-tag, I want the option to download the href link of the a-tag.

Describe the solution you'd like

It should only work if the 'img-tag src' has the same extension (.PNG) as the 'a-tag href' except for the query part (?type=orig).

<a href="https://example.com/wall/136865783?u=5b4faa1d-6e74-11ef-8dea-a2a958ef638c" target="_blank">
<img src="/static/assets/images/point-pc-x2.png">
</a>

In this case, SingleFile needs to download img-tag src because the extension of 'a-tag href' is not .PNG.

Describe alternatives you've considered (optional)

Additional context (optional)

@gildas-lormeau
Copy link
Owner

This issue illustrates well what I am describing here #1595. However, in this particular case, this could be solved by integrating a userscript which would replace the src attribute values before saving the page, see here for more info: https://github.com/gildas-lormeau/SingleFile/wiki/How-to-execute-a-user-script-before-a-page-is-saved

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

2 participants