6

I have read everywhere that .jpg can't have transparency and you can't save it as transparent.

But I have a .jpg picture with transparency. Link to the picture

Can anyone explain how the picture I linked has transparency despite it being in .jpg format? And is there any way to export it with this transparency using Gimp or Krita? I tried to export using them transparency was removed.

8
  • No it can't. The format doesn't support it. The image you linked to is actually a PNG with the wrong file extension. If you open the file in a text editor to examine it, the code starts "‰PNG". – Billy Kerr Dec 12 '20 at 12:52
  • 1
    @BillyKerr Thank you. How can actual file format be found? What tools did you use? – Diamond Troller Dec 12 '20 at 12:56
  • Sorry, I edited my comment to tell you how to check it. Reload the page and you'll see it. – Billy Kerr Dec 12 '20 at 12:57
  • 1
    Yes, thank you Billy. How Can I close question though? – Diamond Troller Dec 12 '20 at 13:04
  • 1
    thank you @BillyKerr ! – Diamond Troller Dec 12 '20 at 13:53
8

The file you linked to isn't a JPG. It's a PNG* with the wrong file extension. Maybe somebody changed it deliberately for some unknown reason, or they just saved it with the wrong file extension.

JPG is RGB only. PNG supports RGBa (with alpha transparency). So, if you want to save it with transparency from GIMP or Krita, you need to export as PNG.

*Note: You can open the image file in a plain text editor to examine the header code.

Example below, opened in Notepad++, showing the fist line of code ‰PNG which indicates it's actually a PNG file

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.