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

[FR]: ImageMaxURL integration #1546

Open
seventyiris83 opened this issue Dec 5, 2024 · 1 comment
Open

[FR]: ImageMaxURL integration #1546

seventyiris83 opened this issue Dec 5, 2024 · 1 comment
Assignees
Labels
Type-Enhancement This is request for brand new feature.

Comments

@seventyiris83
Copy link

Brief description of the feature request

hi,

i keep having to make article filters to get the highest quality images possible in articles (from CSS2RSS feeds most of the time)

if it were possible, somehow integrating ImageMaxURL would be awesome to automatically have RSS Guard return the best quality images and avoid having to make article filters just for this purpose

ImageMax is available to use as a userscript which led me to wonder if it would be possible for said potential integration

thank you 😄

@seventyiris83 seventyiris83 added the Type-Enhancement This is request for brand new feature. label Dec 5, 2024
@martinrotter
Copy link
Owner

This is already possible because MaxUrl is offered as nodejs program too.

So one can relatively easily write this post-process script:

  1. Write post-process script, maybe in Python.
  2. The script will do this:
    1. Load passed XML data and find all tags with regular expressions.
    2. Take each img-src hyperlink and call nodejs "userscript.user.js" file with it.
    3. Take the resulting full-image URL the above nodejs script returned and replace the original URL with it.
  3. Set the script as post-process for the feed you are interested in.
  4. Profit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type-Enhancement This is request for brand new feature.
Projects
None yet
Development

No branches or pull requests

2 participants