Closed kstapelfeldt closed 7 months ago
JP2 issue resolved but required additional modules and a modification to the TN generation process to use imagemagick built from source. Playbook still needs updating from files provided by Irfan.
Few additional notes: Jp2 is not a recognized image format in Drupal. Further, imagemagick utility or the php imagick library do not support it. Thus, we needed to take several steps to make this work.
add to file type and mime type
add image/jp2 jp2
to http://localhost:8000/admin/config/media/filemime to help Drupal recognize this mime type
Enable it here http://localhost:8000/admin/config/media/image-toolkit
build imagemagick with jp2 support !
Use this https://github.com/digitalutsc/media_thumbnails_jp2 module for derivatives.
Note that media_thumbnails_jp2 was modified to directly use the convert library, instead of the imagick due to lack of jp2 support in the imagick library. It was not clear how to build imagick with jp2 support.
https://askubuntu.com/questions/873306/converting-image-to-jpeg2000-does-not-work