Fixing corrupt JPG files

Is there any good software out there for fixing corrupt JPG files?

Corruption damage in a .JPG entails data loss and the JPEG format does not contain redundancy, so there's no way to recover what's lost. Usually if the damage is found towards the end of the file, you can "recover" the good part by truncating it. If you want to do it interactively, you can try using software such as [The Gimp|http://www.gimp.org>, or its (very) expensive brother, Photoshop.
To do it automatically (batch mode) you can investigate if any of the tools in the [Image Magick package|http://www.imagemagick.org/script/index.php] helps. Note that these are command-line Unix tools.

Similar Messages

  • "zip" Terminal command no help fixing corrupt zip file; any other workarounds?

    I downloaded a ".zip" file containing some files that I need to access.
    When I double-click on it, I get the "Unable to unarchive 'xyz.zip' into '[foldername].' ( Error 1 - Operation not permitted )" message, which many people report when they try to open a corrupt zip file.
    I also tried opening the file with "StuffIt Expander," "Archive Utility," and "The Unarchiver," as well as some specialty zip-compression programs, but none were successful.
    I then installed the very useful "Archive.qlgenerator" plugin (http://homepage.mac.com/xdd/software/archive/) which allowed me to at least see inside the zip file using OSX's "QuickLook" feature. Lo and behold, all the files that were supposed to be in the zip file are indeed in there, as they should be. The problem is not that the zip file is empty, the problem is that it has become corrupted somehow.
    So, what I need to do is either "fix" the corrupted zip file, or alternately find some way to extract the needed files using brute force.
    Following tips given on various forums, I tried using OSX's "zip" command in terminal (http://homepage.mac.com/kelleherk/iblog/C1901548470/E731143104/index.html and http://hintsforums.macworld.com/showthread.php?t=132146). I was able to use it properly, but unfortunately neither the "-F" nor the "-FF" commands were of any helping in "fixing" the zip file. The "-F" command incorrectly said that the zip file was empty and that there was nothing to fix; the stronger "-FF" command came back with
    Could not find:
      xzy.z01
    Hit c      (change path to where this split file is)
        s      (skip this split)
        q      (abort archive - quit)
        e      (end this archive - no more splits)
        z      (look for .zip split - the last split)
    or ENTER  (try reading this split again):
    ...but none of the options produced any result. Pressing "z" gave me
    Could not find or open
      xyz.zip
    ...which means that even "-FF" could not get past whatever problem had corrupted the file.
    So: is there any built-in way for Mac OSX to fix or extract the contents of a zip file corrupted like this?
    Alternately, is there any third-party shareware or freeware that will do the trick?
    (I don't want to have to spend big $$$ on a commercial program since all I need to do is open a single zip file. And there is no way to contact the zip file's original creator, so I can't download an uncorrupted version.)
    Any help would be greatly appreciated.

    Mark:
    When I try your first suggestion in Terminal ("unzip -t /path/to/file"), I get this message:
    Archive:  /xyz.zip
      End-of-central-directory signature not found.  Either this file is not
      a zipfile, or it constitutes one disk of a multi-part archive.  In the
      latter case the central directory and zipfile comment will be found on
      the last disk(s) of this archive.
    unzip:  cannot find zipfile directory in one of /xyz.zip or
            /xyz.zip.zip, and cannot find /xyz.zip.ZIP, period.
    When I try your second suggestion ("unzip -l /path/to/file"), I get the exact same error message. (And yes, I am fixing "/path/to/file" to be the correct path to the actual file).
    And no, it is not really part of a multi-part archive. (Or at least it wasn't supposed to be; only one zip file is available, and there was only supposed to one.) Perhaps the zip was mis-encoded in the first place, so that the person who created it accidentally did something wrong which the unzip applications are interpreting as this file being part of a multi-part archive; but even so, all I have is this one file, so I need to fix it as is, or extract its contents as is, since I have no way to contact the original creator to do it right this time.

  • How to fix corrupt dll files

    Hi,
    Happy New Year!
    May it bring all of us, Good Health, Happiness, Harmony & Prosperity!
    I will like to let you know that a few month back, I bought this S10-2 directly from Leveno, USA, but regrettably with in a a few days, I realized that this machine has the following problems:
    1) The "dll files" are corrupt, details are as follows:
    advpack.dll
    dnsapi.dll
    gdi32.dll
    msv1_0.dll
    2)  Power Options:  Control Panel / Power Options / Advance (Power buttons) has 3 options (default)
    a) When I close the lid of my portable computer : Stand by
    Kindly note that when I do this my system enters the stand by mode but after an hour or two even when the lid is close position, it wakes up again which I feel is a mall function and need a fix.
    I will also like you to know that as of date I have repeatedly restored the machine to Factory Settings with a hope to fix the above problems but in vain as such I thought of approaching this august forum not only to educate myself as to how the files got corrupt but also to find a permanent fix, if possible?
    Since I am out of USA where warranty facility can't be availed, hence I do look forward to hearing from a guru, who can bail me out!
    Thanking you in anticipation and may God bless you!
    Warm regards,
    Anwar

    Hi and welcome to lenovo forum...
     wish you a happy new year ...
    That could help BIOS 22 for S10-2  why ?
    1ACN22WW  1.Fixed abnormal resume from standby mode issue.
    Installing the package in Windows.
    ======================
    1.  Locate the file 1ACN22WW.exe that has been downloaded.
    2.  Double click the 1ACN22WW.exe icon.
    3.  Click install
    4.  Click flash bios
    5.  Press Enter to start flashing. During the process, you are advised not to turn off the computer.
    6.  When the update finishes, the computer will automatically reboot for the changes to take effect.
    prefer to update BIOS ...after that procedure ...recover to factory  again...that should fix that prob...
    sincerely KalvinKlein
    Thinkies 2x X200s/X301 8GB 256GB SSD @ Win 7 64
    Ideas Centre A520 ,Yoga 2 256GB SSD,Yoga 2 tablet @ Win 8.1

  • Fixing corrupted video files

    Hello,
    So an unusual thing has happened to a project I have been working on in iMovie'11. I hope I can explain it properly, since the circumstances seems quite complex (to this layman at least).
    It began when I tried speeding up one of the clips I was using. When I applied this function, it corrupted the project: when spooling through the clips in the project editor, the corresponding video didn't appear in the screen to the right, so I couldn't edit it any more. So I undid the Change Speed edit, shut down iMovie and restarted it, hoping that I could pick up again from where I left off, without the final speed change edit. I have done this a number of times when this problem occurs, and it usually works.
    Unfortunately, this time, the project was still corrupted. In fact, all the projects I was working on, bar one, were corrupted, and I could no longer edit them. I couldn't even go into any of the projects, since the text in the button at the top left saying "Edit Project" was grey and didn't respond to clicks.
    Trying to salvage the project, I removed the New Event folder from the iMovie Event folder in Finder, and restarted iMovie. When it started, I was now able to enter my projects although of course, without any clips in the iMovie Event folder, I could only look at the individual thumbnail clips, and couldn't spool through them.
    I copied the clips from the project I was working on, created a new project and pasted them into that. Then I put the New Event folder back into the iMovie Event folder, and imported another clip. After I did this, I was actually able to work on the clips from my original project in the new project again. It seemed that the clips from my project were linking to the files in the iMovie Event folder, and the thumbnail files too. I thought I'd managed to save the project, but when I restarted iMovie the next day, the formerly working project was corrupted again.
    I know that the clips are there, organised and edited in the way I want them, but I think they are having trouble linking to their corresponding clips in the iMovie Event folder. In the event library in the bottom half, the bits of the clips I am using for this project are marked out in orange lines at the bottom of the thumbnails, as it would with a properly functioning project. So in a sense, the programme "knows" what clips I am using and where, but unless I can edit them properly in the project editor, I can't do anything with it, and certainly can't export it.
    I hope I've managed to explain this problem in a way that makes sense, and will be very grateful for your help.
    Thank you very much.

    I'm having the same problem!
    Help! I don't know how to fix it & have spent so much time on this. I just don't know
    what's wrong! It have many video clips in my project & had noticed that the viewer
    window wasn't playing the events but didn't worry about it. Added more clips to
    my project, photos, music & then POOF! One by one the videos in the project are
    corrupted! Tried re-importing directly into iMovie then reinserting into the project.
    That works but another video will corrupt. Also tried copying project & erasing the
    original. That didn't work!
    To try to fix this I tried erasing the plist file thing that some threads mention. It
    didn't work. All the events are iPhoto videos - does this have something to do with
    it?!
    I don't know what to do & have many, many videos to process. I went out & bought
    FCE (Final Cut Express) to try to continue w/o iMovie but even when I've learned FCE
    iMovie will still have things I want to use!
    Anyone out here have the solution?? Maybe I should re-install iMovie...

  • Corrupt JPG files?

    I looked up this problem with the search, but didn't really come across any solid answers. I'm trying to open some JPG images from a CD. The CD was originally made on a PC. Weird thing is that I can open some JPG's and not others. There's one whole folder full of images that won't open. I get the "unreadable" error that says the file may be corrupt, etc. So what's the deal?? Could it be something with the way it was saved on the PC and now it can't be opened on a Mac? I remember checking these CD's after making them on the PC and all of the files opened just fine. Any idea what's going on??
    By the way, I tried opening the JPG's in Preview and Photoshop and got the same error. I can't even get a thumbnail preview of the image.

    Are you sure that all of the images have the .jpg or .jpeg file extension attached to the name?

  • Fixing corrupt .plist files

    I'm wondering if anybody has figured this out yet:
    Mavericks does some different things with .plist files, and the traditional fix of trashing the .plist that is in ~/Library/Preferences no longer works for fixing a corrupt .plist.
    The .plist files are now cached, perhaps in ~/Library/Caches.
    I found this page that addresses the issue: objective c - Deleting plist file does not reset app on Mac OS 10.9 Mavericks - Stack Overflow
    Out of my own curiosity I tried trashing a .plist file from ~/Library/Preferences and then force quitting the cfprefsd process (mine, not root's), and then restarting, but the .plist file was not regenerated. It remained absent from ~/Library/Preferences. So I restored it from the trash.
    Has anyone figured this out?

    It's a very good question regarding plists generally. You may have seen Apple's mention of it, although the caching seems much more agressive in Mavericks, & eg Safari requires quitting cfprefsd, or a restart (logging out/in isn't enough) for removing/replacing the plist file to have any effect, here anyway.
    In 10.8 and later, the CFPreferences agent process (cfprefsd) will cache information from these files and asynchronously write to them. This means that directly modifying plist files is unlikely to have the expected results (new settings will not necessarily be read, and may even be overwritten). You should use the NSUserDefaults or CFPreferences APIs, or the defaults(1) command, to interact with the preferences system.

  • Fixing "corrupt" QT files?

    Hi -
    After a recent crash of my RAID, many QT files will not reconnect in FCP. They throw errors like, "not a format QT understands," and others. Basically, they will not play.
    However, if I xfer them to a Windows machine, the QT files play just fine.
    Which leads me to believe that there is a level of corruption...but that the files might be able to be globally fixed. Is this possible? Clearly the media is still there...and it looks fine....but something in the file type/creator data (?) has been altered.
    I could move ALL the media to a Windows system, then port it back, but that will be probably as time consuming as recapturing the media...hence my search for a utility which might help.
    Thanks for any and all ideas.
    Ron
    TiBook, iBook, G4, G5, others   Mac OS X (10.4.5)  

    I've been round the bend with this problem a couple of times, and my conclusion is that you're hornswaggled.
    Used to be that all the resource data for a data file was kept in the Resource Fork. In current versions of Tiger, that's not the case, and resurrecting the correct resource data is impossible for us mere mortals.
    I'm not saying it can't be done, but I haven't found anyone willing to go on the record who can do it.
    YMMV.
    EDIT: Hornswaggled (hornswoggled, actually) was the wrong word to use. I should have said you're hosed.

  • Need program to fix corrupted video files

    Hello,
    This my first mac and I was wondering if anyone knew of a program that could help me with the following problem...
    I am trying to import videos from my Canon FS100 camcorder (videos are saved on an SD card) and when I plug in the camera to the USB port it can only import one of 9 photos and none of the video. I received a message stating that the files were in an unrecognizable format. I have used the camera and the same brand SD card before and had no trouble importing photo and videos. After about an hour on the phone with APPLE help services last night, the support person concluded that the SD card files had probably been corrupted. Is there a program I can use to fix the files so I can import them to iphoto? I know that the SD card needs to be reformatted before future use but was hoping to be able to use the videos in iphoto and imovie. The file extension of the video file is .MOI or .MOD. I have tried importing directly from the SD card as well but receive the same messages. When I try to import the video clips into imovie, imovie shuts down.
    Thank you for any help!

    nicoler82 wrote:
    .. unfortunately the pictures and some of the videos are no longer visible using the camcorder. I guess the SD card has been corrupted or damaged. Is there anything I can do to restore the images or do I just cut my losses?
    oo-ohh.. no happy end..
    I once helped a friend, who's snapshot-cam erased his precious photos by itself with this tool:
    http://www.bluem.net/en/mac/exif-untrasher/
    .. BUT this is for stills..
    honestly, no idea, about 'movie recovery' aside the 'usual suspects' for data-recovery..
    type 'recovery' as search-item at www.versiontracker.com..
    I heard of a tool named *Test Disk* & PhotoRec.. free, and some people are very happy & grateful with it
    http://www.cgsecurity.org/
    just to feed my curiosity: what brand was the sd-card? and what price?

  • How can you fix corrupt Project Files in Final Cut Pro X?

    Hello All,
    I have reason to believe that one of my project files in Final Cut Pro X is corrupt.
    How may I begin to resolve this issue?  Is there a third party software someone could recommend, like Digital Rebellion (if they have software for FCP X, I'm not sure) that may improve, if not hopefully solve this issue?
    Many thanks!!
    Molly

    Had a similar problem.
    Follow it here:
    http://www.fcp.co/forum/4-final-cut-pro-x-fcpx/11076-freeze-during-export
    among other steps taken I used Corrupt Clip Finder to isolate/remove the culprit and all was OK after that
    no idea how/why the file ( which I''d been using over 5 previous versions) became corrupted

  • Fixing Corrupt Video Files

    Hi All,
    So I think I may really be up the river. The other night, I recorded a conference in the DVCPRO 50 codec through Adobe OnLocation to a hard drive. As it turns out, when I try to play the files, I get the error message "this is not a movie file," odd, as I know it is. What puzzles me more, is that each file is large enough that there is clearly something there. I've tried MPEG streamclip and compressor to fix the problem but to no avail. In my research, I've come across suggestions about the hex codes being messed up somehow - but I have no idea about any of that sort of thing.
    If anyone can help, I'd be in your debt forever (figuratively speaking, of course). But seriously, I need some help, and any would be greatly appreciated.
    Thanks,
    Matt

    For the sake of spreading knowledge, I found the solution here:
    http://forums.creativecow.net/thread/8/1026990

  • Fixing corrupted domain file??

    This afternoon I tried to publish an update to my blog and got the dreaded popup:
    Publishing error - an unknown error occurred.
    I scoured the discussion groups on this topic, checked permissions, tried all 8 steps of Toad's
    suggestion, and still failed.
    I added a new site, constructed a dummy welcome and a dummy blog page, deleted the two existing
    sites and saved the file. (I have multiple WORKING copies of the file on my other machine.)
    Stripped of the two old sites, I could publish the dummy (new) site to a folder with no problems.
    I conclude something is clobbered in my original domain file.
    But, I'm unable to find a recent thread that addressed that issue.
    Since I just finished using Toad's suggestions to get everything working again with iWeb 3.0.2
    on my G4 and MacBook Air, I've learned how to go into "package contents" of the domain file
    and correct the version number.
    What else might I find in there to fix?

    The fact that it opens on the other two Macs points to either the application or you account.  You could reinstall iWeb and see if that helps.  If running Snow Leopard you'll have to delete the current application and all files with "iPhoto" in the file name with either a .PKG or .BOM extension that reside in the HD/Library/Receipts folder and from the /var/db/receipts/  folder,
    Click to view full size
    Then install iPhoto from the disks it came on originally and apply the latest updater.

  • More jpg file corruption

    I've had another jpg file corrupted in the same manner as before and this time the file hasn't been touched recently by anything but LR. My second copy was also corrupt because I "back up" too often. Fortunately, it's easy for me to get files back from my internet backup, which is written only once. To get to my CDs or DVDs would require digging in a closet.
    To me this brings a lot of issues to the fore with jpg handling, both what I do with them and what LR does with them. First, if you are going to rewrite files frequently (I only write metadata on demand, not automatically) then you have to know how to do it safely! On my side, it may be stupid to write it out -- nope, not, because I have to in order to edit in PS and retain the metadata. I have almost innumerable LR backups and the metadata is in there. I have considerable experience now in plopping in an absolute original file and LR happily applies everything to it. Hum. I'm forgetting the PS edits which would not be backed up with this plan.
    The existence of 1 to 1 previews makes it very slow to SEE a problem in LR. I haven't used these files for months until the 9th when I started working on them. The first day or so it was grinding a lot, obviously making previews. So the good preview of this file had to be made on the 9th or a bit after so the file was OK at that time. In fact, everything looked fine until I decided to edit a copy of the file in PS. It stumbled and flickered the screen and then created a preview with only the top third or so of the file intact and the bottom part "faded." These appear to still be (almost) valid jpg file, but the content has been damaged.
    I have used jpg files for years and I don't remember a time when I've had jpg file corruption. I may have forgotten an instance, but it doesn't come to mind. I've had 3 or 4 them now with LR.
    These jpg files were created from scans and I have manipulated them to put the capture date, date digitized, and some global type information. I use exifer, a product that's been used for many years by many people (and not updated recently). If exifer is a problem, why only a handful of corruptions in thousands of files?
    It's difficult to have a sensible backup plan except to keep the originals somewhere really safe. Even with metadata writing turned off by default, these files churn. I cannot keep every version of jpg files. And keeping the old files for a short period does not help because bad files don't show up in LR under many circumstances because of the preview files.
    I don't know if this is relevant but I never had this happen with LR 1.0.
    This is very worrisome and I'm going to get grouchy soon! You guys with RAW are really lucky that LR doesn't write to your files! I'd now love to have an option of a sidecar file which I could write to the jpg only when I'm ready to and have a way to check that the resulting file is still intact.
    Of course I haven't proven there isn't an issue with my disk drive, but I've now proven it to myself that there's a very high probability that LR is corrupting jpg files when writing out metadata. I would like to hear if others using jpg files have had corruptions.

    Hi, I too also have just experienced jpg corruption. It was a jpg that had been taken several years ago and had not been edited at all. The bottom left hand corner had been transposed from the right hand side. The result of this was the whole bottom 1/5 of the picture was shifted to the right. Also the color of the shifted portion was slightly different from the rest. This is the first jpg corruption in Lightroom I have seen. My backup was the same but fortunately I had a copy on DVD. I am using Windows version of Lightroom 1.2, tried 1.3 and decided to go back to 1.2
    Does anyone know if this type of corruption only happens to jpg files. Would it be worthwhile marking them all read-only. I plan to check my other jpgs to see if there are any more corruptions. I mainly shoot RAW now and convert to DNG

  • How to repair a corrupt photoshop file?

    My photoshop file has corrupted. I'm currently using CS6 and regularly saved my file but when I saved it for the last time last night it must have gone horribly wrong. it's now not even recognised as a .psd file it's just 'file' under properties. It's for a uni project due very soon, so any help would be much appreciated~!
    Cheers!

    Thank you for sharing such information, actually I also encountered this kind of problem. But, while searching on internet, I came across Remo repair software which can fix corrupt Photoshop file at your fingertips.

  • Songs Skipping...Awesome if itunes fixed damaged CD files!

    A social revolution lacking basic features...seriously someone (at apple or via petition) please pay attention?:) How can a team miss such a basic thought? I acknowledge focus is on online revenue but please help...Please!
    When I am coping a cd could you please tell me if a track or a cd is bad!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! If it is bad could you incorporate software to fix it! If not why not replace my bad copy with a good copy...I already bought the CD and it would be a great customer service. I have so much music that I can't listen too...my fault for lending to friends but this would be a huge feature improvement.
    FIX CORRUPTED AUDIO FILES!
    We have all loaded cd's into itunes thinking all was well...we are listening to a favorite song and skip skip skip? Please at least let us know!
    Love you all!

    Preferences->Advanced->Importing
    Check "Use error correction when reading Audio CDs"
    This will slow your importing speed but it does work.
    and the revolution rolls on......

  • Help fixing broken m4a files!

    I think my header files are broken on approx. 3000 songs (.m4a).  I imported a bunch of songs into another program and pretty much an estimated 1 of every 3 files aren't working any longer...  Not sure how bad the damage is yet!   Any advice other than delete all the songs would be appreciated, since I purchased the majority of them and don't have the cd's for the rest anymore...

    Hi Andyaubs,
    Just in case you're still interested in repairing those .m4a files you could take a look at following post where "How to Fix Corrupt Audio Files" process is fully detailed.
    http://aeroquartet.com/movierepair/corrupt-audio
    Kind Regards,
    Javier
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

Maybe you are looking for

  • Is there a way to create/edit registry keys with Java?

    I'm writing a console app and I'd like to have it so the users can change values in the registry. I'm not just talking about app keys I want any key. Is there a way to do this with Java?

  • Problem combining select, order by, rownum (top-N) and for update

    Hello, i have serious problems with this. -- drop table testtable; create table testTable (id number(10,0) primary key, usage number(10,10)); -- delete from testtable; insert into testtable values (11, 0.5); insert into testtable values (10, 0.3); in

  • Has anyone in the uk had a preparing for shipment email about there apple watch yet

    has anyone in the uk had a preparing for shipment email about there apple watch yet ?

  • Apex Competition

    Hi, Just noticed that the 2009 Apex Developer Competition has been launched, similar to the one ran by Oracle Germany last year: http://www.oracle.com/technology/products/database/application_express/html/competition.html The signifcant diferrence in

  • Private Events in iCal and Zimbra

    Hi, I use iCal in 10.6.2 and Zimbra server at work. I don't see an option in iCal to make events private, though I have heard that there should be a button on the edit pane to enable that. If I create the event on the Zimbra web interface I CAN get a