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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T13871, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11871 - Add support for JPEG 2000 images
Add support for JPEG 2000 images
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.12.x
All All
: Lowest enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
http://commons.wikimedia.org/wiki/Ima...
:
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: ---


Attachments

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

See also http://commons.wikimedia.org/wiki/Image:GT49.jpg

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: http://test.wikipedia.org/wiki/File:A_JPEG_2000_file.jpg

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.


Navigation
Links