Upgrade images by local copies #46
Instagram compresses images on upload in terms of size and JPEG. I use the service since 2011, and compression rate for my early pictures is too high, some downloaded images have low quality. Since I have a local archive of all saved photos from my iPhones, I wrote a script to find better versions of fetched images here. The script is available here: https://gist.github.com/pavelkryukov/15f93d19a99428a284a8bcec27e0187b
I followed this example: https://github.com/realpython/image-fingerprinting. They use
I would like to know if you see an opportunity to merge this functionality into InstaLoader. There is no problem to save a hash for each image to a
Imagehashing seems an interesting tool for managing databases of images where encountering duplicates or near-duplicates can be used e.g. for then pointing to the representative with the best quality for each "equivalence class" of pictures. This approach and your script seem great, and I can imagine that many people may want to "upgrade" their galleries like that such that they are compiled by multiple sources of images. Thanks for sharing it with us!
However, I don't see how we could cleanly integrate such a feature into Instaloader. Maybe it would be best to keep it as a separate tool, or toolset for picture gallery managment. Nevertheless, I am planning to create a well-structured place, most probably a section in our documentation, where we could refer to all the (known) external scripts that are somehow affiliated with Instaloader, by extending it, using it for other purposes than just downloading, or post-processing the data generated by it. There, we could definitely include your script, if you'd agree with that.