Pegasus PIC
Line 10: | Line 10: | ||
== Discussion == | == Discussion == | ||
− | Though the PICView software give the impression that they are different formats, it's not clear that there is any distinction between PIC and [[KQP]]. If there is a difference, it could be that KQP is a restricted profile of PIC, or that KQP files are the ones that lack a JPEG "DHT" segment. | + | Though the PICView software give the impression that they are different formats, it's not clear that there is any distinction between PIC and [[KQP]]. If there is a difference, it could be that KQP is a restricted profile of PIC, and/or that KQP files are the ones that lack a JPEG "DHT" segment. |
== Format details == | == Format details == | ||
A PIC file contains embedded [[JPEG]] data, but it lacks the critical DQT segment(s), and may lack DHT segment(s), so it can't just be extracted as a standard JPEG file. | A PIC file contains embedded [[JPEG]] data, but it lacks the critical DQT segment(s), and may lack DHT segment(s), so it can't just be extracted as a standard JPEG file. | ||
+ | |||
+ | ''The following information is not based on official sources. It may be wrong or incomplete.'' | ||
+ | |||
+ | If the PIC file does not contain a DHT (Huffman table definition) segment, use the example tables given in the JPEG specification (T.81 section K.3.3; see [[JPEG#Specifications]]). These may also be found in the IJG libjpeg source code, in the file jcparam.c (see [[JPEG#Software]]). | ||
+ | |||
+ | To construct suitable quantization tables (DQT segment), start with example luminance and chrominance tables given in the JPEG specification (T.81 section K.1). These may also be found in the IJG libjpeg source code, in the files jcparam.c and wizard.txt. They will likely be used if you create a new JPEG file with "<code>cjpeg -quality 50</code>". | ||
+ | |||
+ | Scale each value in each table by a certain factor. A PIC file should contain an APP1 segment whose data begins with the signature "<code>PIC\0</code>". The second byte after the signature is a code for the luminance, and the third is a code for the chrominance. | ||
+ | |||
+ | The scale factor for the luminance table is (approximately?) the luminance code divided by 32. Likewise for the chrominance table. | ||
== Identification == | == Identification == | ||
Line 27: | Line 37: | ||
== Sample files == | == Sample files == | ||
* {{CdTextfiles|cream/cream11/cream11-01/image/picsaver.zip|picsaver.zip}} → *.PIC | * {{CdTextfiles|cream/cream11/cream11-01/image/picsaver.zip|picsaver.zip}} → *.PIC | ||
− | * [https://archive.org/details/especial-internet-lo-mejor-del-shareware Especial Internet: Lo Mejor Del Shareware] → WIN/GRAPHICS/PICVIEW.ZIP | + | * [https://archive.org/details/especial-internet-lo-mejor-del-shareware Especial Internet: Lo Mejor Del Shareware] → WIN/GRAPHICS/PICVIEW.ZIP → PICS/*.PIC (must be installed, or extracted from PICVIEW.Z) (or {{DiscMasterLink|browse/10909/Especial%20Internet:%20Lo%20Mejor%20Del%20Shareware.iso/win/graphics/picview.zip/PICVIEW.Z|at DiscMaster}}) |
* [https://archive.org/details/net-power-3-97 Net Power 3 97] → NetPower_3-97.mdf → nettools/graphics/jpg/picsaver/*.pic (or {{DiscMasterLink|browse/5368/NetPower_3-97.mdf/nettools/graphics/jpg/picsaver|at DiscMaster}}) | * [https://archive.org/details/net-power-3-97 Net Power 3 97] → NetPower_3-97.mdf → nettools/graphics/jpg/picsaver/*.pic (or {{DiscMasterLink|browse/5368/NetPower_3-97.mdf/nettools/graphics/jpg/picsaver|at DiscMaster}}) | ||
Revision as of 16:42, 5 January 2023
Pegasus PIC is a raster graphics format associated with some products from Pegasus Imaging Corporation. It may also be known as Pegasus JPEG, or PIC JPEG. It was also rebranded in some form as Konica Quality Photo (KQP).
PIC format is an incompatible extension of BMP.
Contents |
Discussion
Though the PICView software give the impression that they are different formats, it's not clear that there is any distinction between PIC and KQP. If there is a difference, it could be that KQP is a restricted profile of PIC, and/or that KQP files are the ones that lack a JPEG "DHT" segment.
Format details
A PIC file contains embedded JPEG data, but it lacks the critical DQT segment(s), and may lack DHT segment(s), so it can't just be extracted as a standard JPEG file.
The following information is not based on official sources. It may be wrong or incomplete.
If the PIC file does not contain a DHT (Huffman table definition) segment, use the example tables given in the JPEG specification (T.81 section K.3.3; see JPEG#Specifications). These may also be found in the IJG libjpeg source code, in the file jcparam.c (see JPEG#Software).
To construct suitable quantization tables (DQT segment), start with example luminance and chrominance tables given in the JPEG specification (T.81 section K.1). These may also be found in the IJG libjpeg source code, in the files jcparam.c and wizard.txt. They will likely be used if you create a new JPEG file with "cjpeg -quality 50
".
Scale each value in each table by a certain factor. A PIC file should contain an APP1 segment whose data begins with the signature "PIC\0
". The second byte after the signature is a code for the luminance, and the third is a code for the chrominance.
The scale factor for the luminance table is (approximately?) the luminance code divided by 32. Likewise for the chrominance table.
Identification
Known PIC/KQP files:
- Start with ASCII "
BM
". - Have
44 00 00 00
at offset 14, indicating a BMP "INFOHEADER" size of 68. - Have
4a 50 45 47
("JPEG
") at offset 30.
Software
- XnView (as "Konica Camera File")
- PICView v3.21 (Windows 3.x software): Especial Internet: Lo Mejor Del Shareware → WIN/GRAPHICS/PICVIEW.ZIP
Sample files
- picsaver.zip → *.PIC
- Especial Internet: Lo Mejor Del Shareware → WIN/GRAPHICS/PICVIEW.ZIP → PICS/*.PIC (must be installed, or extracted from PICVIEW.Z) (or at DiscMaster)
- Net Power 3 97 → NetPower_3-97.mdf → nettools/graphics/jpg/picsaver/*.pic (or at DiscMaster)
See also KQP#Sample files.