Thumbnails

Wayne Germann wgermann at PACIFIC.EDU
Mon Jan 4 21:56:07 UTC 2021


Hi Kelly,   How do I buy it?

-----Original Message-----
From: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> On Behalf Of Kelly Burgess
Sent: Monday, January 4, 2021 4:06 AM
To: OmnisList <omnisdev-en at lists.omnis-dev.com>
Subject: Re: Thumbnails

Yes, as Mike says, I have an "ImageMagicker" xcomp wrapped around the ImageMagick open source, but there's no support in my xcomp for video formats, only for static TIFF, GIF, PNG or JPG images (DICOM also supported based on imebra open source).  I'm also unfamiliar with remote form icon arrays, not sure what's required there to map in your image data.

For thumbnails, you can first use $file2image() to load a binary and obtain the dimensions, then $resizeImage() to turn the binary into a thumbnail, and finally $image2file() if you want the thumbnail back in a file.

Kelly


--- functions implemented ---

ImageMagicker file-based static functions -

	$tiff2jpg (cTiffSourceFilePath, cJpgDestFilePath)
		converts the source TIFF (or GIF or PNG) file to JPG destination file.

	$rotate90Right (cSourceFilePath, cJpgDestFilePath)
		rotates the source file 90 degrees and saves to JPG destination file.

	$rotate90Left (cSourceFilePath, cJpgDestFilePath)
		rotates the source file 270 degrees (-90) and saves to JPG destination file.

	$rotate180 (cSourceFilePath, cJpgDestFilePath)
		rotates the source file 180 degrees and saves to JPG destination file.

	$dicom2jpg (cDicomSourceFilePath, cJpgDestFilePath)
		converts the source DICOM file to JPG destination file.
		(*this one is based on imebra open source, not ImageMagick)


ImageMagicker binary-based static functions -

	$file2image (cSourceFilePath, imageBinary, format, width, height)
		reads the TIFF, GIF, PNG or JPG file at <i>sourceFilePath into the <i>imageBinary variable,
		 and returns format, width and height of image.

	$reformatImage (imageBinary, newFormat [,compType, compQuality])
		converts imageBinary to [newFormat] format, optionally adjusting the compression type and quality.

	$resizeImage (imageBinary, width, height)
		scales imageBinary up or down to [width] by [height] pixels.

	$rotateImage90CW (imageBinary)
		rotates imageBinary 90° clockwise.

	$rotateImage90CC (imageBinary)
		rotates imageBinary 90° counter-clockwise.

	$rotateImage180 (imageBinary)
		rotates imageBinary 180°.

	$image2file (imageBinary, cDestFilePath [,newFormat])
		creates a file from imageBinary at destFilePath, optionally converting the image to another format.

	$getImageInfo (imageBinary, format, width, height [,compType, compQuality])
		returns imageBinary's format, dimensions and compression properties

--- end ---
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 


More information about the omnisdev-en mailing list