PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, October 10, 2022

[FIXED] How to turn a jp2 image to a jpg file?

 October 10, 2022     gd, jpeg, php     No comments   

Issue

How to turn a jp2 image to a jpg image in php using the gd library.

Thanks


Solution

You can't. GD2 doesn't support JP2 (JPG 2000) format.

You will have to use Imagick library.

I had 1.4million image files in jp2 format, and I used IrfanView batch function. It event let me re-cosntruct the directory structure, which consisted of three levels, like [0-f]/[0-f]/[0=f]/image.jpg



Answered By - Mārtiņš Briedis
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing