I used the list of common compression schemes at 'pedia: http://en.wikipedia.org/wiki/TIFF#TIFF_Compression_Tag
* (bug 10154) Don't allow user to specify days beyond $wgRCMaxAge.
* (bug 28868) Show total pages in the subtitle of an image on the
file description page for multi-paged documents.
+* (bug 28883) Message names for different compression types commonly
+used in Tiff files.
=== API changes in 1.19 ===
switch( $tag ) {
case 'Compression':
switch( $val ) {
- case 1: case 6:
+ case 1: case 2: case 3: case 4:
+ case 5: case 6: case 7: case 8:
+ case 32773: case 32946: case 34712:
$val = self::msg( $tag, $val );
break;
default:
# EXIF attributes
'exif-compression-1' => 'Uncompressed',
-'exif-compression-6' => 'JPEG', # only translate this message to other languages if you have to change it
+'exif-compression-2' => 'CCITT Group 3 1-Dimensional Modified Huffman run length encoding',
+'exif-compression-3' => 'CCITT Group 3 fax encoding',
+'exif-compression-4' => 'CCITT Group 4 fax encoding',
+'exif-compression-5' => 'LZW',
+'exif-compression-6' => 'JPEG (old)', # only translate this message to other languages if you have to change it
+'exif-compression-7' => 'JPEG',
+'exif-compression-8' => 'Deflate (Adobe)',
+'exif-compression-32773' => 'PackBits (Macintosh RLE)',
+'exif-compression-32946' => 'Deflate (PKZIP)',
+'exif-compression-34712' => 'JPEG2000',
'exif-copyrighted-true' => 'Copyrighted',
'exif-copyrighted-false' => 'Public domain',
{{Identical|Height}}',
'exif-bitspersample' => 'Exif is a format for storing metadata in image files. See this [http://en.wikipedia.org/wiki/Exchangeable_image_file_format Wikipedia article] and the example at the bottom of [http://commons.wikimedia.org/wiki/File:Phalacrocorax-auritus-020.jpg this page on Commons]. The tags are explained [http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html briefly] and [http://www.kodak.com/global/plugins/acrobat/en/service/digCam/exifStandard2.pdf in further detail].',
-'exif-compression' => 'Exif is a format for storing metadata in image files. See this [http://en.wikipedia.org/wiki/Exchangeable_image_file_format Wikipedia article] and the example at the bottom of [http://commons.wikimedia.org/wiki/File:Phalacrocorax-auritus-020.jpg this page on Commons]. The tags are explained [http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html briefly] and [http://www.kodak.com/global/plugins/acrobat/en/service/digCam/exifStandard2.pdf in further detail].',
+'exif-compression' => 'Exif is a format for storing metadata in image files. See this [http://en.wikipedia.org/wiki/Exchangeable_image_file_format Wikipedia article] and the example at the bottom of [http://commons.wikimedia.org/wiki/File:Phalacrocorax-auritus-020.jpg this page on Commons]. The tags are explained [http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html briefly] and [http://www.kodak.com/global/plugins/acrobat/en/service/digCam/exifStandard2.pdf in further detail].
+
+This field labels what the compression of the image is. It is commonly seen in Tiff images. It uses messages like {{msg-mw|exif-compression-1}} for the value. http://en.wikipedia.org/wiki/TIFF#TIFF_Compression_Tag has information about this field.',
'exif-photometricinterpretation' => 'Exif is a format for storing metadata in image files. See this [http://en.wikipedia.org/wiki/Exchangeable_image_file_format Wikipedia article] and the example at the bottom of [http://commons.wikimedia.org/wiki/File:Phalacrocorax-auritus-020.jpg this page on Commons]. The tags are explained [http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html briefly] and [http://www.kodak.com/global/plugins/acrobat/en/service/digCam/exifStandard2.pdf in further detail].',
'exif-orientation' => 'Exif is a format for storing metadata in image files. See this [http://en.wikipedia.org/wiki/Exchangeable_image_file_format Wikipedia article] and the example at the bottom of [http://commons.wikimedia.org/wiki/File:Phalacrocorax-auritus-020.jpg this page on Commons]. The tags are explained [http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html briefly] and [http://www.kodak.com/global/plugins/acrobat/en/service/digCam/exifStandard2.pdf in further detail].',
'exif-samplesperpixel' => 'Exif is a format for storing metadata in image files. See this [http://en.wikipedia.org/wiki/Exchangeable_image_file_format Wikipedia article] and the example at the bottom of [http://commons.wikimedia.org/wiki/File:Phalacrocorax-auritus-020.jpg this page on Commons]. The tags are explained [http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html briefly] and [http://www.kodak.com/global/plugins/acrobat/en/service/digCam/exifStandard2.pdf in further detail].',
*$2 is one of 17 broad categories that the code falls into. For example any code starting with 15 has the contents of {{msg-mw|exif-iimcategory-spo}} for $2.',
# EXIF attributes
+'exif-compression-5' => 'Lempel-Ziv & Welch algorithm {{optional}}',
'exif-compression-6' => '{{optional}}',
+'exif-compression-7' => '{{optional}}',
+'exif-compression-8' => '{{optional}}',
+'exif-compression-32773' => '{{optional}}',
+'exif-compression-32946' => '{{optional}}',
+'exif-compression-34712' => '{{optional}}',
'exif-copyrighted-true' => 'The image is under copyright (including if its copyrighted but freely licensed)',
'exif-copyrighted-false' => 'The image is Public domain',
'widthheight',
'exif-fnumber-format',
'exif-focallength-format',
+ 'exif-compression-5',
'exif-compression-6',
+ 'exif-compression-7',
+ 'exif-compression-8',
+ 'exif-compression-32773',
+ 'exif-compression-32946',
+ 'exif-compression-34712',
'exif-photometricinterpretation-2',
'exif-photometricinterpretation-6',
'exif-xyresolution-i',
'exif-contact-value',
'exif-subjectnewscode-value',
'exif-compression-1',
+ 'exif-compression-2',
+ 'exif-compression-3',
+ 'exif-compression-4',
+ 'exif-compression-5',
'exif-compression-6',
+ 'exif-compression-7',
+ 'exif-compression-8',
+ 'exif-compression-32773',
+ 'exif-compression-32946',
+ 'exif-compression-34712',
'exif-copyrighted-true',
'exif-copyrighted-false',
'exif-photometricinterpretation-2',
),
'exif-compression' => array(
'exif-compression-1',
+ 'exif-compression-2',
+ 'exif-compression-3',
+ 'exif-compression-4',
+ 'exif-compression-5',
'exif-compression-6',
+ 'exif-compression-7',
+ 'exif-compression-8',
+ 'exif-compression-32773',
+ 'exif-compression-32946',
+ 'exif-compression-34712',
),
'exif-copyrighted' => array(
'exif-copyrighted-true',