Is there a way to create JPEG files without the photoshop file signature?

Community Beginner ,
Mar 25, 2020

Copy link to clipboard

Copied

When I try to upload images to some system I'm using, it fails on some JPEGs and others not. After some searching I found that at the bits and bytes level there is a signature that tells if a file is a JPEG or something else. Apparently JPEGs exported from photoshop have a slightly different signature, and apparently my system fails on them. They are still somewhat JPEGs but more like photoshop JPEGS. If I open and export the file in Gimp for example, it works without a problem.

So my question comes to if there is a way to export those images in photoshop as plain JPEG images?

Community Beginner
Correct answer by tvdb | Community Beginner

For future reference, I solved my problem by using imageoptim. This tool has set the JFIF marker to APP0.

TOPICS
Actions and scripting, How to, Import and export

Views

646

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Is there a way to create JPEG files without the photoshop file signature?

Community Beginner ,
Mar 25, 2020

Copy link to clipboard

Copied

When I try to upload images to some system I'm using, it fails on some JPEGs and others not. After some searching I found that at the bits and bytes level there is a signature that tells if a file is a JPEG or something else. Apparently JPEGs exported from photoshop have a slightly different signature, and apparently my system fails on them. They are still somewhat JPEGs but more like photoshop JPEGS. If I open and export the file in Gimp for example, it works without a problem.

So my question comes to if there is a way to export those images in photoshop as plain JPEG images?

Community Beginner
Correct answer by tvdb | Community Beginner

For future reference, I solved my problem by using imageoptim. This tool has set the JFIF marker to APP0.

TOPICS
Actions and scripting, How to, Import and export

Views

647

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 25, 2020 0
Most Valuable Participant ,
Mar 25, 2020

Copy link to clipboard

Copied

No options because both are right. The real signature is only the first 4 bytes. Make sure you aren’t using CMYK, though, this isn’t widely supported in JPEG. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 1
Enthusiast ,
Mar 25, 2020

Copy link to clipboard

Copied

Perhaps this is not about a signature, but about metadata. In some cases, I had problems due to the large amount of metadata that Photoshop writes to a file. The easiest way to remove them is exiftool.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 1
Community Beginner ,
Mar 25, 2020

Copy link to clipboard

Copied

Good call, but there seems to be almost no metadata on the erroneous file.  I only checked it with the standard Preview app on mac.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 0
Community Beginner ,
Mar 25, 2020

Copy link to clipboard

Copied

Thanks for your reply. The files are all in RGB so that's not the issue. 

 

I checked the hex dumps and they give me the results at the bottom. I also tried to manually change the erroneous files at the bytelevel, but to no avail.

 

The one that works starts with: FF D8 FF E0 00 10 4A 46 49 46

The one that doesn't work: FF D8 FF ED 00 2C 50 68

Both files end with: FF D9


Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 0
Community Beginner ,
Mar 25, 2020

Copy link to clipboard

Copied

Update: manually changing the bytes does work, I did something wrong before with saving the file.

 

I changed FF D8 FF ED to FF D8 FF E0, and now it uploads.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 0
Most Valuable Participant ,
Mar 25, 2020

Copy link to clipboard

Copied

Bear in mind that Adobe were one of the very first adopters of JPEG, and Photoshop one of the very first apps to make JPEG files. So your real question is, what is wrong with the system you are using?

 

All JPEG files should start FFD8FFE0. The JPEG file format is properly called JFIF, and is described in detail here: https://www.ecma-international.org/publications/files/ECMA-TR/ECMA%20TR-098.pdf This builds on the JPEG compression format, which is not described in that document. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 0
Community Beginner ,
Mar 25, 2020

Copy link to clipboard

Copied

You are probably right in saying that the system I'm using is too limiting. And perhaps the person who created the image did something wrong in photoshop when he/she exported it. 

I'm not here to attack the brand in any way. Just looking for a solution.

You wrote: "All JPEG files should start FFD8FFE0." So for some reason the erroneous files I have start with FFD8FFED, as I mentioned in another comment that last byte is the culprit.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 0
Most Valuable Participant ,
Mar 25, 2020

Copy link to clipboard

Copied

Sorry, should start FFE8FF.

After this there are a sequence of fields that may appear in any order. Many JPEG files start with "JFIF APP0 marker" which means they will start FFE8FFF0 (FFF0 means App0). But Photoshop uses APP14 (FFFB) in your file. Both are legal, but it may be that the person who made your system looked at a small sample of files rather than the spec. Here is a partial list of APP tags (App14 is an Adobe tag, invented in the very early days even before JFIF). Changing APP14 to APP0 will produce a header that is ignored. Photoshop data will be lost (like resolution). This may not matter.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 2
Most Valuable Participant ,
Mar 25, 2020

Copy link to clipboard

Copied

Sorry the APPx list is here https://exiftool.org/TagNames/JPEG.html

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 0
Community Beginner ,
Mar 25, 2020

Copy link to clipboard

Copied

Great, thank you very much. That solves my answer as to whether there is a setting in photoshop. I can continue now. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 0
Community Beginner ,
Mar 25, 2020

Copy link to clipboard

Copied

For future reference, I solved my problem by using imageoptim. This tool has set the JFIF marker to APP0.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 0
Adobe Community Professional ,
Mar 25, 2020

Copy link to clipboard

Copied

The overarching jpeg file can have a number of formats within it.

The first and second bytes of a jpeg are always FFD8. This is mandatory.

 

This is usually followed by a marker (APP0 or APP1) indicating a JFIF or EXIF segment. So the third and fourth bytes are FFE0 for the older JFIF format and FFE1 for the newer  Exchangable Image Format (Exif) , which is used by Adobe when saving file.

 

However some files go straight to image segments or use other markers. Ideally a jpeg parser should be able to read any jpeg but many are written for the common cases above and hiccup when presented with anything else.

Dave

 

 

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 0
Adobe Community Professional ,
Mar 25, 2020

Copy link to clipboard

Copied

There are two (technically incompatible) versions of JPEG, JFIF and JPEG-EXIF. Most current libraries handle both with no problems.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2020 0
Community Beginner ,
Mar 30, 2020

Copy link to clipboard

Copied

I'm looking to resolve problems that my LG TV has displaying Photoshop processed jpegs. Some show, others don't. Very frustrating. I'm thinking of trying the imageoptim program you mentioned. Is it above board, safe, and actually does the trick? I'm a little skeptical as the descriptions at the site are not always well worded.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 30, 2020 0
New Here ,
Dec 06, 2020

Copy link to clipboard

Copied

Just open and save them in paint.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 06, 2020 0