[Feature] duplicates check, default keep HEIC other than JPEG #10537
Replies: 10 comments 3 replies
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
-
It’s been a year since I first posted about this when I started with Immich. This is still stopping me rolling this out. I can only assume either iPhones are not a priority, or this issue is not widespread but with my old method of adding photos since heic was introduced as default in iPhone, and I converted to jpeg on pc when copying them off, but left on iPhone as heic and now duped. By Immich. Heic are the default, and better on an iPhone so this should not be a feature but a default behaviour if you have an iPhone. |
Beta Was this translation helpful? Give feedback.
This comment has been minimized.
This comment has been minimized.
-
This isn't actually about immich itself... but I've been having the exact same problem and I got a bit tired of waiting! So... and let me preface this buy saying I'm not a developer... at all... but I've been giving it my best shot! I've been working on messing around with an app called Immich Duplicate Finder which was created by @vale46n1 and I've been loving it so far... check it out, it's not exactly the same... no stacking option, and it only compares 2 images at a time... but I've been hacking away on the python code, one of the only languages I know decently well... and I've gotten it to the point there it will detect if there's an HEIC and it's extracted JPG and show you in the UI so you can better pick which one to toss. No auto delete yet, not much in the way of config yet... but I'm getting there. If anyone would be willing to help... so show me how to contribute similar code to this project, I'd be happy to pitch in more... and if it's something you're interesting in testing, I'll do what I can to package up the pretty hacky code and get a fork posted! Normally it highlight differences in a color with green being the "better" one. When it finds HEICs and JPGs and notices they are dups, it usually only highlights the size and makes the larger one green thinking its got more data so it must be better even though everything else matches. This is the original output from the code in the current repo: Now, with my new code you can see I added the "GPS Data" section to you can tell if you're delete a copy with GPS data when the other one doesn't have any, I also added the "Camera Info" sections which it puts together from EXIF data in the image, not just the "lens" tag... then the big win for me is that it now can tell if it's an HEIC pair, colors the HEIC file green, make the JPG file red and changes the size coloring to yellow if they're different so you can still see there's a difference, but you'd probably still want to go with the HEIC anyway. Here's what that looks like: P.S. The "EXT_DIFF_HEIC" text can be turned off... that's just running in a debug mode so I can more easily find examples while testing! |
Beta Was this translation helpful? Give feedback.
-
For me there's the additional issue of iCloud sync creating thousands of duplicates (I have a part of the photos exported from iCloud to a iPhotos library), would have to go through them manually since the automatic backup doesn't mark photos as synced, it checks the library for them and if I bulk delete all HEIC duplicates, it resyncs them each and every time. |
Beta Was this translation helpful? Give feedback.
-
I would like to amend this request to work with any filetypes. I have photo sessions with raw files where Immich will always suggest keeping the raw file due to file size whereas 90 percent of the raws are not worthy of keeping and should be deleted. The rest should be stacked. |
Beta Was this translation helpful? Give feedback.
-
I have searched the existing feature requests to make sure this is not a duplicate request.
The feature
For now, duplicate check keep lastest modify time (I guess) or largest file size by default.
as I know HEIC is More efficient than jpeg, HEIC image file size is about 50% less than JPEG , and some similar file were convert from HEIC to JEPG by icloud automatic,to get more device compatibility.
So, can we add a file type priority?
In most case HEIC is the best choice: Apple Original and smaller file sizes.
For thousands of photos, change default setting by click one by one it's too inefficient, it may take hours or days to deal with those photos.
Platform
Beta Was this translation helpful? Give feedback.
All reactions