Patch Name: PHSS_19698

Patch Description: s700_800 10.X ImagingSubsystem Sept 1999 Periodic Patch

Creation Date: 99/09/17

Post Date:  99/10/06

Hardware Platforms - OS Releases:
	s700: 10.00 10.01 10.10 10.20
	s800: 10.00 10.01 10.10 10.20

Products: N/A

Filesets:
	ImagingSubsystem.IMAGE-RUN ImagingSubsystem.IMAGE-SHLIBS

Automatic Reboot?: No

Status: General Superseded

Critical: No

Path Name: /hp-ux_patches/s700_800/10.X/PHSS_19698

Symptoms:
	PHSS_19698:
	1. Imageview displays large bitonal tiff image with
	   inverted colors on TrueColor
	2. Unable to save large uncompressed bitonal tiff images
	   using imageview
	3. Imageview should print "not enough colors" when it is
	   not able to allocate all colors
	4. Inappropriate error message: "Can't display image:
	   errorinfo=19 errorinfo=0" in imageview
	5. Imageview does not save file as named
	6. Image library does not handle certain gif images created
	   in Windows
	7. Imageview is inconsistent in handling the -g switch
	8. Imageview gives warning repeatedly when an image is
	   redrawn in less colors
	9. Save Current Page as saves displayed palette image as
	   RGB in file
	10.Should desensitize Save Current Page As... until file
	   is opened
	11.EH:options required for disabling the menus around the
	   image

	PHSS_17972:
	1. GIF89 transparency not handled
	2. Need ability to prelimit number of colors allocated
	3. Image lib leaks memory for GIF89a file

	PHSS_17122:
	ilEFSOpen leaks memory for certain image types

	PHSS_16223:
	Imageview cannot save TIFF uncompressed in some locales.

	PHSS_14449:
	Screen Capture doesn't capture 24-bit .BMP images correctly.
	Imageview unable to display gif89a interlaced files
	correctly.

	PHSS_11277:
	Imageview doesn't handle some 24-bit images correctly.
	Image library doesn't handle 12-bit pseudocolor images
	correctly.

	PHSS_8659:
	Image library corrupts memory when mirroring an image.
	The image has to be captured twice to store
	on certain xwd files.
	Imageview cannot display some files generated using
	24-bit display.
	Mpower 2.03 can't print from Imageview.

	PHSS_7928:
	Image:
	Some gif 87 files are not viewable on Imageview.
	Imageview dumps core when saving tiff to img format.
	ImageView and SharedPrint fail on certain gif87a and
	gif89a files.

Defect Description:
	PHSS_19698:
	1. Imageview displays large bitonal tiff with
	   inverted colors on TrueColor
	2. Unable to save large uncompressed bitonal tiff images
	   using imageview
	3. Imageview should print "not enough colors" when it is
	   not able to allocate all colors
	4. Inappropriate error message: "Can't display image:
	   errorinfo=19 errorinfo=0" in imageview
	5. Imageview does not save file as named
	6. Image library does not handle certain gif images created
	   in Windows
	7. Imageview is inconsistent in handling the -g switch
	8. Imageview gives warning repeatedly when an image is
	   redrawn in less colors
	9. Save Current Page as saves displayed palette image as
	   RGB in file
	10.Should desensitize Save Current Page As... until file
	   is opened
	11.EH:options required for disabling the menus around the
	   image

	PHSS_17972:
	1. GIF89 transparency not handled.
	2. Need ability to prelimit number of colors allocated .
	3. Image lib leaks memory for GIF89a file.

	Resolution:
	1. New code added to handle GIF89 transparency
	2. New APIs added to prelimit number of colors allocated
	3. The free() library call was called at appropriate places

	PHSS_17122:
	ilEFSOpen does not call function free() to free heap memory
	at appropriate places.

	PHSS_16223:
	Localized "TIFF uncompressed" text was compared with hard
	coded "TIFF uncompressed".

	PHSS_14449:
	Red and Blue colors swapped while capturing .BMP files with
	Screen Capture.
	Image Libraries doesn't read all the 4 passes for gif89a
	interlaced file format.

	PHSS_11277:
	Imageview doesn't handle some 24-bit images correctly.
	Image library doesn't handle 12-bit pseudocolor images
	correctly.

	PHSS_8659:
	The problem is in the formula they use to calculate the
	position of the destination pointer (pdst) in
	ilMirrorYBitonalExecute().
	The read and write code of xwd (in IL) is modified.
	The image decoded from xwd files (created by xclients) was
	not rendered using colormap informations from the file.
	Problem exists because of 9.* verses 10.* path differences.

	PHSS_7928:
	Image:
	Some gif 87 images are not recognized by il.
	ImageViewer core dumps when saving certain
	tiff images as img formats.
	A few errors were introduced in the il code when support
	for gif 87 files was added.

SR:
	5003374124 5003182683 5003424358 5003432187 1653259424
	1653246249 1653231688 5003310664 1653181024

Patch Files:
	/opt/image/bin/imageview
	/opt/image/lib/libil.1
	/opt/image/lib/libilefs.1
	/opt/image/lib/nls/msg/C/imageview.cat

what(1) Output:
	/opt/image/bin/imageview:
		X Window System, Version 11 R5+ HP-UX B.10.01.00 Sep
			tember 1999 Patch Release
		(build date: Fri Oct  1 09:31:20 IST 1999)
	/opt/image/lib/libil.1:
		X Window System, Version 11 R5+ HP-UX B.10.01.00 Sep
			tember 1999 Patch Release
		(build date: Thu Sep 16 18:18:58 MDT 1999)
	/opt/image/lib/libilefs.1:
		HP libilefs.sl Version 2.5 b107, HP-UX B.9.00 ; Sat
			Jan 21 11:17:55 IST 1995
		X Window System, Version 11 R5+ HP-UX B.10.01.00 Sep
			tember 1999 Patch Release
		(build date: Fri Oct  1 09:12:22 IST 1999)
	/opt/image/lib/nls/msg/C/imageview.cat:
		None

cksum(1) Output:
	3569688477 332990 /opt/image/bin/imageview
	3864268469 312202 /opt/image/lib/libil.1
	352024626 193086 /opt/image/lib/libilefs.1
	865092079 5445 /opt/image/lib/nls/msg/C/imageview.cat

Patch Conflicts: None

Patch Dependencies: None

Hardware Dependencies: None

Other Dependencies: None

Supersedes:
	PHSS_7928 PHSS_8659 PHSS_11277 PHSS_14449 PHSS_16223 PHSS_17122
	PHSS_17972

Equivalent Patches:
	PHSS_19699:
	s700: 11.00
	s800: 11.00

Patch Package Size: 890 KBytes

Installation Instructions:
	Please review all instructions and the Hewlett-Packard
	SupportLine User Guide or your Hewlett-Packard support terms
	and conditions for precautions, scope of license,
	restrictions, and, limitation of liability and warranties,
	before installing this patch.
	------------------------------------------------------------
	1. Back up your system before installing a patch.

	2. Login as root.

	3. Copy the patch to the /tmp directory.

	4. Move to the /tmp directory and unshar the patch:

		cd /tmp
		sh PHSS_19698

	5a. For a standalone system, run swinstall to install the
	    patch:

		swinstall -x autoreboot=true -x match_target=true \
			-s /tmp/PHSS_19698.depot

	By default swinstall will archive the original software in
	/var/adm/sw/patch/PHSS_19698.  If you do not wish to retain a
	copy of the original software, you can create an empty file
	named /var/adm/sw/patch/PATCH_NOSAVE.

	WARNING: If this file exists when a patch is installed, the
	         patch cannot be deinstalled.  Please be careful
		 when using this feature.

	It is recommended that you move the PHSS_19698.text file to
	/var/adm/sw/patch for future reference.

	To put this patch on a magnetic tape and install from the
	tape drive, use the command:

		dd if=/tmp/PHSS_19698.depot of=/dev/rmt/0m bs=2k

Special Installation Instructions:
	PHSS_17972:
	This patch implements two new APIs namely ilXSetDitherSize()
	and ilXGetNColors().The man page documentation of these
	APIs are available in the ImagingDevkit patch PHSS_17974.

	Previous Patch:
	Install this patch in single user mode (init S)