Jump to content

Duplicate finder with copy to organized folders?


iamgregor
 Share

Recommended Posts

I have a source folder of over 6000 image files. I spent weeks organizing a copy of that folder into detailed subfolders to make the pictures easy to find. Here's the problem, I realized that because I didn't use the right JPG compression settings most of the copied files are substandard quality. I want to copy from the source files to over-write the bad ones, but I spent weeks organizing them.

A duplicate file finder can easily find the matches and delete the smaller ones (smaller file size is the lower quality one in this case), but it won't put the bigger file where the deleted one was. A file synchronizer won't help either because it again can get rid of the small files, but won't put them in the organized folders.

IN SHORT:

Is there a way to automatically search two folders for duplicate files, have the larger file overwrite the smaller, where the larger file is copied to the LOCATION of the smaller file so it doesn't destroy my organization?

Link to comment
Share on other sites

I have a source folder of over 6000 image files. I spent weeks organizing a copy of that folder into detailed subfolders to make the pictures easy to find. Here's the problem, I realized that because I didn't use the right JPG compression settings most of the copied files are substandard quality. I want to copy from the source files to over-write the bad ones, but I spent weeks organizing them.

A duplicate file finder can easily find the matches and delete the smaller ones (smaller file size is the lower quality one in this case), but it won't put the bigger file where the deleted one was. A file synchronizer won't help either because it again can get rid of the small files, but won't put them in the organized folders.

IN SHORT:

Is there a way to automatically search two folders for duplicate files, have the larger file overwrite the smaller, where the larger file is copied to the LOCATION of the smaller file so it doesn't destroy my organization?

Nevermind. I figured that there probably isn't such a thing and wrote a simple script in PHP to do it. First it indexed the sorted directories and stored them in an session array variable. Then every time the page was loaded, it grabbed a source file, checked to see if it was bigger than the destination and copied over the destination if it was. It worked just fine.

Link to comment
Share on other sites

I have long ago given up using JPG files - I use only PNG now. PNG format combines the advantages of JPG and GIF, but has none of the disadvantages. Try to use PNG images, and you will no longer have any of the JPG compression/quality problems.

Actually, I converted them FROM PNG because the PNGs were so big. I got them to almost half the size with very little (practically no) noticeable reduction in quality. Unless you know something I don't, PNG isn't going to work for me :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy