Mathnerd314/repagination

New feature: Repaginating stand alone images

Opened this issue · 1 comments

Great add on but Do you know how you can make it epic?

Add a feature to show all images in a series altogether in the same tab.

Just imagine I am displaying in my browser a stand alone image 1 of a series of 15. Usually the URL will be in the following form:
http://www.images.com/some/gallery/path/filename1.jpg
(maybe with leading zeros). It is easy to understand that the next image in the series will be:
http://www.images.com/some/gallery/path/filename2.jpg and so on.

When the user right clicks the image, Repagination should be able to recognize it is a stand alone image with a number in the filename and be able to create a page populated with all images in the series thus allowing easy viewing of them and bulk downloading with the help of some other add on such as "Image Picka" or "Simage".

Some considerations to take into account:
Let's imagine there is no image 5 because of an error. Just jump it and search for image 6 so you can continue the series even if some loose images are missing. you can adjust how many images to jump before considering you have reached the end of the series. If the series is very long, you could limit the gallery to 255 images after the original one or something like that (then, if you started in image 1 and ended in image 256, then the user could use image 256 to generate a new gallery that starts in 256 and ends in 512 and so on). Also, if the images are too big in size (since they are not thumbnails but full size images), you could add a simple javascript button that reduces all images to fit the width of the window.

You can add this functionality also in the context menu of images embedded in a webpage if they have a number in the name. This way, if the user is looking at a full size image in a gallery but this image is not stand alone but embedded in a web page, the user does not need to use "view image" to isolate it in order for your add on to work on it.

This would allow to load in a tab all the images in a series that are loaded directly as stand alone images when you click on the thumbnails or they are loaded embedded in a webpage but don't have "prev/next" links.

There was a pre-Quantum add on called Show Me More (https://addons.mozilla.org/en-US/firefox/addon/show-me-more/) with a similar functionality to the one I'm proposing. I used it a lot but the author stopped development a couple of years ago and it is not compatible with Quantum. I think adding this feature Repagination could be a great replacement for this long lost add on.

I'm waiting for FF 63 to be released, I'll think about this after that.