You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is something that I made a mental note of when first writing the addon but then never had the time to implement a fix. My two cents: I think using a file path is the best route here.
Off the top of my head, there are two ways a file path could be used to accomplish this:
append the file path to the file buffer passing to the md5 hash function.
store a hash map of processed image file paths and use that in conjunction with file md5 hashes to determine if an image is processed yet. (e.g. an image has been processed only if the image's md5 hash is found in imageData and the image path is in the hash map)
The second option (path hash map) seems more favorable to me as I think it will be more flexible, less prone to bugs and easier to maintain.
What’s not working: if you upload the same image twice, image optimizer will only detect it once.
What should be happening: if you upload the same image twice, you should be able to optimize both of them.
Steps to recreate:
The text was updated successfully, but these errors were encountered: