RetouchPRO

Go Back   RetouchPRO > Technique > Photo Restoration
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read


Photo Restoration Repairing damaged photos

damaged image file "invalid header"

Reply
 
Thread Tools
  #1  
Old 07-03-2007, 01:56 PM
imagenewb imagenewb is offline
Junior Member
 
Join Date: Jul 2007
Posts: 3
Post damaged image file "invalid header"

i have been given a picture to repair that i can not seem to get to open
no thumbnail
does not work in PS, Corel, MGI, IE, nothing...

what happend was this picture was hidden for security reasons
i was told that in order to ensure it was not opened by anyone other than them, it was opened in notepad, a space was entered as the very first character, now that it is needed as evidence, even with the space removed, it will not open in any program i have tried... i am far from an expert with this, but i have tried numerous things with no luck... any and all help would be appreciated...

and i am not allowed to upload this file, sorry...
Reply With Quote top
  #2  
Old 07-03-2007, 02:26 PM
Craig Walters's Avatar
Craig Walters Craig Walters is offline
Senior Member
 
Join Date: Apr 2005
Location: somewhere over there
Posts: 8,786
Blog Entries: 4
Re: damaged image file "invalid header"

imagenewb, welcome to RP.

offhand, my first inclination would be to check the file extension and to make sure that it is not .txt or .doc and to verify somehow that it's been changed back to the original extension, whatever that was.

but, it may be more serious than that. notepad basically saves in a text format, not binary. pictures are binary. they are binary files. that means when the original was converted to notepad, the entire nature of the file may have changed, since the file would have been changed when it was loaded and then saved, since i dont think notepad can save as a binary.

and, if that was the case, then i dont know of any way to convert it back to a binary file and it may well be lost. in the future, if you've got an image you want to save hidden, for security reasons, i'd try encrypting with something that can encrypt and then de-encrypt and make sure it can do it with image files.

you could try a search on google or another engine, and try something like '.txt to .jpg conversion or something along those lines, or maybe 'text to binary conversion'.
Reply With Quote top
  #3  
Old 07-03-2007, 02:37 PM
imagenewb imagenewb is offline
Junior Member
 
Join Date: Jul 2007
Posts: 3
Re: damaged image file "invalid header"

i was under the assumption that jpegs were written in hex...
Reply With Quote top
  #4  
Old 07-03-2007, 02:54 PM
Photo678's Avatar
Photo678 Photo678 is offline
Senior Member
 
Join Date: May 2004
Posts: 328
Re: damaged image file "invalid header"

ask them to send you the picture without the characters in it. if security reasons are needed, tell them to rar it up with a password.
Reply With Quote top
  #5  
Old 07-03-2007, 02:58 PM
imagenewb imagenewb is offline
Junior Member
 
Join Date: Jul 2007
Posts: 3
Re: damaged image file "invalid header"

they said they removed the extra space and could not open it, which is why they gave it to me... i need to fix it for them...
Reply With Quote top
  #6  
Old 07-03-2007, 02:58 PM
Jerryb Jerryb is offline
Senior Member
 
Join Date: Sep 2006
Posts: 397
Re: damaged image file "invalid header"

hi,
to me you have created a delima, normally i would like to help, however.."security reasons" to me that sounds like the document has a secuirty classificiation, possibly governement, you can't tell us anything about it or upload it because of this classification....

it appears you (or the holder of the file, don't have authorization to open the file since if you did they would have given more detailed info on how to open it properly .......

and it going to be used as evidence..... mmm...

maybe i am seeing/reading too much but.. i see red flags on this request....



Quote:
Originally Posted by imagenewb View Post
i have been given a picture to repair that i can not seem to get to open
no thumbnail
does not work in PS, Corel, MGI, IE, nothing...

what happend was this picture was hidden for security reasons
i was told that in order to ensure it was not opened by anyone other than them, it was opened in notepad, a space was entered as the very first character, now that it is needed as evidence, even with the space removed, it will not open in any program i have tried... i am far from an expert with this, but i have tried numerous things with no luck... any and all help would be appreciated...

and i am not allowed to upload this file, sorry...
Reply With Quote top
  #7  
Old 07-03-2007, 03:05 PM
Photo678's Avatar
Photo678 Photo678 is offline
Senior Member
 
Join Date: May 2004
Posts: 328
Re: damaged image file "invalid header"

Quote:
Originally Posted by imagenewb View Post
they said they removed the extra space and could not open it, which is why they gave it to me... i need to fix it for them...

You should be able to just remove the space and have it open....if thats the not the case then something else is wrong

Not sure what person would use an added space to the file structure as security measures though.....but you might be involved in something you shouldn't be. Decline and tell them to reacquire the image with PROPER security measures. Perhaps even saving as a pdf from indesign with password security to open it.

Last edited by Photo678; 07-03-2007 at 03:10 PM.
Reply With Quote top
  #8  
Old 07-03-2007, 04:15 PM
DCobb's Avatar
DCobb DCobb is offline
Senior Member
 
Join Date: Aug 2006
Location: Southern California
Posts: 557
Re: damaged image file "invalid header"

I may not fully understand this problem, but for years I have used a program called Quick View Plus to open programs for which I do not have installed software.

http://www.avantstar.com/Products/Qu...ewPlusOverview


dc
Reply With Quote top
  #9  
Old 07-03-2007, 06:38 PM
Dave.Cox's Avatar
Dave.Cox Dave.Cox is offline
Senior Member
 
Join Date: Feb 2007
Location: GrandPrairie.TX
Posts: 536
Re: damaged image file "invalid header"

An image file is what we call a binary file. This means that the data is stored in the file as a bunch of one and zeros, which are sometime represented by hex numbers from 00 to FF, in a specific order. Text editors also store text in text files as a set of numbers in hex from 00 to FF, but these numbers are stored much differently. Notepad only recognizes the lower set of numbers that are assigned to what is called the standard character set. any number that notepad sees that is outside of the standard character set, notepad will try to convert to something that it understands. The most common conversion is it will convert all 00 characters to 20, because 00 is not a valid character, and 20 is the space character. 00 is a valid binary data number however. Once this happens to the photo file, when photo programs try to read in the file, they are looking for specific types of data, in a specific order. Since that data is no longer there and in the correct order, the programs don't know what to do with the data, and will return an error indicating that they don't know how to process the file.

Bottom line is, your file is no longer a photo file, and getting it back to a photo file would be chancy at best.

Sorry if this is too technical, but thought I would throw it out there for those that might be interested.
Reply With Quote top
  #10  
Old 07-03-2007, 08:34 PM
Cameraken's Avatar
Cameraken Cameraken is offline
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,158
Re: damaged image file "invalid header"

Thanks Dave.

That’s really interesting.

I get these problems all the time.
Even symbols like degrees (&deg) turn to junk in my (accounts) editor.

Do you know of a text editor that displays all these characters correctly?

At present I use VB to change the chr() to something usable
eg.
If InStr(data(t), Chr(176)) Then etc.

but it would be nice to have an editor where I could 'see' these characters.

Imagenewb.
Sorry for the hijack. But an editor where you could see these characters may help with your problem as well.


Ken.
Reply With Quote top
Reply

  RetouchPRO > Technique > Photo Restoration


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing images for RetouchPRO jeaniesa Photo Retouching 19 11-05-2016 09:28 PM
Posting Your Image and Works Etiquette Craig Walters Photo Restoration 27 09-26-2016 12:30 PM
Tutorial 05: Converting a Color Image to Black and White grayscale BW DannyRaphael Photo-Art 101 17 05-22-2011 05:55 PM
Tutorial 06: Pencil sketch DannyRaphael Photo-Art 101 19 04-10-2004 01:06 PM
help - compression problem cendres Photoshop Help 15 02-11-2002 10:42 AM


All times are GMT -6. The time now is 01:18 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved