Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
How to view JPG file contents?
Old 10-13-2011, 06:50 PM How to view JPG file contents?
Experienced Talker

Posts: 38
Name: jim
Trades: 0
hello, are there any programs or websites that will look at a JPG and see if it is properly formed, meets specifications, etc.

Last edited by jwriter; 10-13-2011 at 07:05 PM..
jwriter is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-14-2011, 07:58 AM Re: How to view JPG file contents?
chrishirst's Avatar
Defies a Status

Posts: 43,963
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
It's very simple, if it is not "properly formed" it will not open correctly in a browser.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-17-2011, 01:56 AM Re: How to view JPG file contents?
Experienced Talker

Posts: 38
Name: jim
Trades: 0
Ummm, thanks. For those who might be interested in viewing the contents of a jpg (as per my subject line) here is something you can do, which I recently found out:
1. Use a text viewer such as Text Wrangler to view a hex dump of the file. If you open it properly the ascii characters will be visible and the other characters will be suppressed.
2. Go to the following website and see what the first few ascii characters should be for a jpg. This will tell you if the file is really a jpg or another type of file masquerading with jpg file extension.

http://www.mikekunz.com/image_file_header.html
jwriter is offline
Reply With Quote
View Public Profile
 
Old 10-17-2011, 06:58 AM Re: How to view JPG file contents?
chrishirst's Avatar
Defies a Status

Posts: 43,963
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Right, so you wanted to do a hex Dump of the file or see the binary content. And on a Mac as well if you are using TextWrangler.

For Windows users You can do the same thing with Notepad

The file header is usually the first 32 bytes of the file and JPEGs may also be identified as JFIF.

Do take note that using this method may not always indentify a malicious executable file 'spoofed' as another type, as In segmented exe files the true header may be in a different segment with a offset marker to where the header is located.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to How to view JPG file contents?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22748 seconds with 11 queries