The images are in .jp2 (JPEG-2000) which is not a free format and thus need to be converted before they can be uploaded to Commons.
They can be converted to tiff e.g. with http://www.graphicsmagick.org/batch.html
| Alicia_Fagerving_WMSE | |
| Aug 22 2019, 6:44 AM |
The images are in .jp2 (JPEG-2000) which is not a free format and thus need to be converted before they can be uploaded to Commons.
They can be converted to tiff e.g. with http://www.graphicsmagick.org/batch.html
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T294440 ☂ Umbrella task for work with UN/IGOs/iNGOs | |||
| Open | None | T250804 ☂️Cooperation with UNESCO Archives | |||
| Resolved | Jopparn | T215269 FindingGLAMs media uploads | |||
| Resolved | Jopparn | T230899 Work with UNESCO Archives material | |||
| Resolved | Alicia_Fagerving_WMSE | T230973 Document how to convert images from UNESCO |
This was harder than expected, because graphicsmagick, despite being installed this way, kept complaining about No decode delegate for this image format.
Ended up using ffmpeg (version 3.4.6) instead which was already installed on my Ubuntu 18.04, though I don't know if it was there by default.
A whole directory of files can be converted with a bash script:
#!/bin/bash for file in *.jp2; do outfile=`basename $file .jp2`.tiff ffmpeg -i "$file" "$outfile" done
Note that the resulting files are at least 3 times heavier than originally, so make sure there's enough space on the hard drive before converting a big batch.