I have recently converted every image on my website to JP2 to decrease file size while still having transparency.
On Safari everything works great, but Firefox does not display the JP2 images, however it does display PNGs.
Is JP2 unsupported in Firefox?
JPEG 2000 (JP2) is an image compression standard and coding system.
JPEG 2000 is compatible with several image editing programs, including Adobe Photoshop. To open a . JP2 file, simply open the latest version of Photoshop and select your . JP2 file from your computer.
What is a JP2 file? JPEG 2000 (JP2) is an image coding system and state-of-the-art image compression standard. It use wavelet technology to code lossless content in any quality at once.
(JP2) Supported browser below:
Firefox: Not supported.
Chrome: Not supported.
Safari: Supported.
You can also check this link:
https://caniuse.com/#feat=jpeg2000
JP2 images are not supported on Firefox.
But you can use the <picture>
element to provide multiple image formats so the browser can choose and display the supported image format:
<picture>
<source srcset="img/example.jp2" type="image/jp2"> <!-- format supported by safari -->
<source srcset="img/example.webp" type="image/webp"> <!-- format supported on many browsers -->
<source srcset="img/example.jpg" type="image/jpeg"> <!-- common supported format -->
<img src="img/example.jpg" alt="example-alt-text"> <!-- default -->
</picture>
Note: An alternative to the JP2 format could be the WebP format:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With