tiff support? OS X Core Services?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
redpill
Posts: 21
Joined: Fri Jan 08, 2010 10:38 pm

tiff support? OS X Core Services?

Post by redpill » Thu Jan 14, 2010 7:09 am

According to the Rev manual, the tiff image format is not directly supported. Is this correct?

I'm new to Rev, and have yet to even try it; but, I have been reading the manual. Apparently, one can use a Quicktime container object to reference a tiff; however, that seems "unnatural," especially considering that other development tools have this capability.

Perplexed at Rev's strange lack of support for a well-documented and used file format, I researched Apple's AppleScript developers' site. Interestingly enough, I discovered that AppleScript can access "Image Events" using the in-built Core Services. These Image Events can provide access to many file formats including tiff and even Photoshop! Very cool.

Knowing this, would there be a way for Rev on OS X to support the additional formats provided to it by the Core Services that are built into the OS? Maybe this kind of feature can be provided in an add-on?

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: tiff support? OS X Core Services?

Post by Klaus » Thu Jan 14, 2010 9:14 am

Hi redpill,

you can only display TIFF files (and ANY other format like PSD etc. that QuickTime can open!)
inside of a QuickTime player object, right!

Using "Image events" (or SIPS via shell) has nothing to do with the ability to display other formats in Rev!
You could however use it to convert TIFF to JPG or PNG files and display these in regular image objects.

Best

Klaus

redpill
Posts: 21
Joined: Fri Jan 08, 2010 10:38 pm

Re: tiff support? OS X Core Services?

Post by redpill » Fri Jan 15, 2010 6:55 am

Klaus wrote:You could however use it to convert TIFF to JPG or PNG files and display these in regular image objects.
:D
Nice! Thank you for the insight. That was another aspect I didn't even consider. That would mean that my planned application could *either* reference a TIFF -- converting it on-demand -- or store (in the database) a smaller representation in a JPEG or PNG format.

Or, beyond that, one could perform any of the supported Image Event operations like cropping, flipping, etc.

Thank you, Klaus!

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: tiff support? OS X Core Services?

Post by Klaus » Fri Jan 15, 2010 1:02 pm

Hi redpill,

you're welcome! :)

I use SIPS via shell a lot, and it works great and very fast!


Best

Klaus

Post Reply