Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't open in photoshop or indesign images downloaded from instagram #30

Open
nitriques opened this issue Jul 22, 2016 · 19 comments
Open

Comments

@nitriques
Copy link
Contributor

hello, i can't open in photoshop or indesign images downloaded from instagram. a problem with the analisys of data from the image appears.

Application version: 1.3.3
Client version: 5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Reported date: 7/11/16 6:05 PM
Reported by: A Google User

@munki-boy
Copy link

Change the file extension in the filename to .jpg or something like that. Probably a jpeg file got named as .png or whatever.

@munki-boy
Copy link

Nah, doesn't work

@nitriques
Copy link
Contributor Author

I still have to test, this bug comes from the chrome store lol.

But I think we do respect the original file extension.

@munki-boy
Copy link

Some of these sites send the wrong header, thought it might be that but not in this case.

@munki-boy
Copy link

The images aren't spec correct, Photoshop cares but camera raw/lightroom don't so you have to open via those into Photoshop or other Adobe apps. Other brand software is more tolerant.

@nitriques
Copy link
Contributor Author

We parse images using C/C++ code to make sure they are valid and they pass validation. I wonder what's bothering photoshop.

@munki-boy
Copy link

I think Photoshop expects the kind of jpeg that has EXIF. Both types start with the Jpeg magicbytes but only the first little bit. As soon as you pass them through something less strict they'd save out as the kind of Jpeg that Photoshop expects.

In this case it's probably convenient to use a type that doesn't contain EXIF as standard.

There is a similar problem when trying to parse Photoshop TIFF with Java. Photoshop wants the extra area of metadata in the files.

If you open a regular Jpeg and one of these from instagram in Hex you can see the different magicbytes after the "I'm a jpeg" bit.

It's also the same situation if you save an image from instagram without using your plugin, just manually right-click->save as in browsers.

Not your fault mate.

@nitriques
Copy link
Contributor Author

Hahah thanks for the explanation.

Maybe a saveForAdobe switch could be added if we could find what needs to be changed in order for PS to open it! That would be sick.

@munki-boy
Copy link

This applies to all Adobe apps apart from probably Lightroom and Photoshop Camera Raw plugin. You forgot saveForAdobe(TM) ha ha

@munki-boy
Copy link

JPEG image files begin with FF D8 and end with FF D9. JPEG/JFIF files contain the ASCII code for "JFIF" (4A 46 49 46) as a null terminated string. JPEG/Exif files contain the ASCII code for "Exif" (45 78 69 66) also as a null terminated string, followed by more metadata about the file.

@nitriques
Copy link
Contributor Author

saveForAdobe(TM)

Yeah let's name it saveForAdocrap

Are those byte safes to blindly insert ?

@munki-boy
Copy link

Yes, it starts at the seventh byte but it didn't make the file ok for Photoshop when I tried just now.

Photoshop is doing "Strict Typing" thought you'd approve of that?

@munki-boy
Copy link

@nitriques
Copy link
Contributor Author

Photoshop is doing "Strict Typing" thought you'd approve of that?

Normally, I would. But I hate Adobe so much, I can't say it when they've made the right choice ahaha

@munki-boy
Copy link

ha ha F* the man!

@dbussiere
Copy link

Here's the trick :

https://imgur.com/gallery/ipHIV

@nitriques
Copy link
Contributor Author

@dbussiere The link is down, wanna tell us more ?

@laocoi
Copy link

laocoi commented Nov 16, 2019

Goto Edit -> Preferences -> File Handling -> Camera Raw Preferences
In JPEG and TIFF handling part, choose option: Automatically open all supported...

@madranet
Copy link

madranet commented Jul 8, 2022

Goto Edit -> Preferences -> File Handling -> Camera Raw Preferences In JPEG and TIFF handling part, choose option: Automatically open all supported...

Thanks. This works but the downside is you now have to go through the extra Camera Raw import dialogue for every JPG and TIFF you open in Photoshop. So, if you only occasionally open an Instagram image in Photoshop, it's probably less hassle to just open it first in some other image viewer [eg: Preview on OSX] and then export it again. Photoshop will open it no problem, after that.

BTW - I'm not sure why this has been submitted as a Shift+Click issue. It's a Photoshop problem. It happens even with photos downloaded from Instagram through source code diving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants