Can .jpg have transparency?

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.

Answer

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

Attribution
Source : Link , Question Author : Diamond Troller , Answer Author : Billy Kerr

Leave a Comment