iamgregor Posted November 10, 2008 Report Share Posted November 10, 2008 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? Quote Link to comment Share on other sites More sharing options...
iamgregor Posted November 10, 2008 Author Report Share Posted November 10, 2008 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. Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted November 11, 2008 Report Share Posted November 11, 2008 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. Quote Link to comment Share on other sites More sharing options...
iamgregor Posted November 13, 2008 Author Report Share Posted November 13, 2008 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 :( Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.