Last modified: 2012-12-05 14:41:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11871 - Add support for JPEG 2000 images
Add support for JPEG 2000 images
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
All All
: Lowest enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: multimedia
  Show dependency treegraph
Reported: 2007-11-04 23:33 UTC by Broken Arrow
Modified: 2012-12-05 14:41 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Broken Arrow 2007-11-04 23:33:51 UTC
Image files with MIME-type image/jpeg2000 are not thumbnailed.

See also

Both files can be read fine e.g. with Corel Photo-Paint 11.

This may be an imagemagick issue related to the jasper version installed on WMF sites, hence the shell keyword.
Comment 1 Brion Vibber 2007-12-05 20:03:43 UTC
JPEG 2000 files should be uploaded as .jp2 or .j2k, not .jpg or .jpeg, as it's a different format from JPEG/JFIF.

Currently we don't support JPEG 2000 in MediaWiki, so functionality of such files will be hit-or-miss at best. (Nor do most browsers support it.)
Comment 2 Antoine "hashar" Musso (WMF) 2008-08-29 22:45:06 UTC
Maybe we can render them as jpg using ImageMagick ?
Comment 3 Mike.lifeguard 2009-03-19 18:03:17 UTC
Removed shell keyword as it seems there's nothing to do on shell.
Comment 4 Tisza Gergő 2009-05-11 23:46:01 UTC
If the software cannot support JPEG 2000 images, why is uploading them permitted? It just confuses users, they think it's their fault that it does not show up.

Also, the image/jp2 mime type is currently not recognized, thus [[MediaWiki:Mediawarning]] is shown on the description page, confusing users even further.
Comment 5 Brion Vibber 2009-05-12 00:57:45 UTC
They're not permitted. They have a different file type extension which is not whitelisted, and should be recognized as a different file type which would not be uploadable on a wiki with default or Wikimedia's configuration.

The filtering appears to be a bit lax somewhere, though, since they apparently can get through if you mislabel the file extension.

I took the originally-referenced file and re-uploaded it to test for a sample:

It's being correctly detected as image/jp2, but this shouldn't make it past upload...
Comment 6 Brion Vibber 2009-05-15 00:14:28 UTC
I'm closing this in case we really do want to add JPEG 2000 support in the future it can be reopened. :)

Bug 18803 now covers the uploading bug where you can upload the files as .jpg (at which point of course they don't work).

Note You need to log in before you can comment on or make changes to this bug.