Wednesday, January 30, 2019

adobe photoshop - Clipping mask retained in jpg file


I have a JPG which appears to of retained a clipping mask:


enter image description here


(http://gdh.guildmembers.co.uk/logos/LEVENE%20MAG.jpg)


When this file is opened in photoshop / fireworks and then the "Paths" tab is visited, you can see the saved clipping path on the jpg. However I tried to replicate this in photoshop and couldn't replicate with a new file. How was this done? I assume it is via some form of metadata?


It seems that the clipping path could be removed when uploaded via a web based image uploader, in this case a flash based uploader.



Answer



What you're observing is not a clipping mask, per se. Jpeg has no transparency and no concept of clipping or masking. Jpeg does have several metadata sections, and many programs will happily store extra information in there.



Photoshop stores paths, as you've noticed, and guides. To replicate this, create a new file and add some paths and guides. Then "Save As" (not "Save for Web") to create a new JPG. Re-open this file, and you'll see that it saved the guides and paths.


Keep in mind that many programs, uploaders, etc. will not preserve metadata so this can't be depended on for transferring important data.


No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...