eight04 / image-picka

A Firefox/Chrome extension helping you download images.
MIT License
171 stars 19 forks source link

[Feature request] Option to exclude images from loading #288

Open yfdyh000 opened 2 years ago

yfdyh000 commented 2 years ago

This is an idea and advanced option feature for discussion. When user to bulk interact with a familiar site, useless common images are preloaded and excluded (unchecked) through size and URL filter, so it's wasteful for users to wait for all new large images to be reloaded, rendered to the browser and checked by default.

eight04 commented 2 years ago

Similar to #271. Though the transform URL trick works, I think it will be better to have a separated list?

yfdyh000 commented 2 years ago

A blacklist is interesting, but I haven't yet thought of a good way to manage them. In this issue, I envision an operating mode that adding the not loaded images to the downloads queue while Save button clicked, treat them as checked by user.

eight04 commented 2 years ago

In this issue, I envision an operating mode that adding the not loaded images to the downloads queue while Save button clicked, treat them as checked by user.

What do you mean? You want to download images that failed to load? Or you want to download images that are still loading?

yfdyh000 commented 2 years ago

What do you mean? You want to download images that failed to load? Or you want to download images that are still loading?

Latter, since some image hosting sites are slow or bulky pictures for the picka, and I intend to download all the pictures. I've tried to do it but see that filename will be null. Guessing the file name from the URLs is available to certain sites's urls or naming conventions (like [index].ext) only. Using HTTP HEAD might alleviate it, but the schema need to adjust, the HEAD reqs & naming when saving in bulk, or preload filenames in the picka viewer. It will advance the filesize filter, but it is less important, and real URLs and filenames filters, but I don't see them present. All in all, it looks like an image URLs crawling, previewing, and bulk download request tool, but with less assurance. This may not be worth it and uncommon, so no rush. A downloader extension seems to be better suited to this need, even if they don't have images viewer on a page.

eight04 commented 2 years ago

You may want to open another issue for that.

The current picker wasn't designed for background crawling so we may have to rewrite the image loading logic to make it work in background.