Converting PCT images to JPG

I am migrating client data to our new system in Servoy. If the image in the old system had been loaded from a Mac, the image will be exported as a PCT file, rather than a JPG. Problem is, once loaded into Servoy, the PCT file can not be displayed. Does anyone have a solution for converting PCT files to JPG before loading?

Thanks in advance.

gdotzlaw:
Does anyone have a solution for converting PCT files to JPG before loading?

I think there’s a lot of software that can load pct files and save them as jpg. Photoshop definitely can do this for you (you can even make a batch process to convert a whole folder of images)
It will also depend on which platform you are on what software is available. Anyway: Google will be a good friend to find ‘converting PCT to JPG’.

Good luck!

I’m sorry, I was not clear.

Clients of our new Servoy software will be migrating thier old data into their new Servoy version. Their data will have been exported from their old software, and some images may have been exported in PCT version. Potentially their could be 1,000’s of images (I have personally seen 55,000 for one client). The migrator which I built in Servoy, handles all the data cleaning / loading into the new Servoy table structure, and it is responsible for loading the images. I need this migrator to load PCT images or convert them to JPG before loading them.

Does anyone have a plugin that can handle this?

gdotzlaw:
Does anyone have a plugin that can handle this?

I don’t think the bundled Image plugin will do conversions from one format to another.
And I don’t know of any other Servoy plugin that does image conversions so perhaps you should consider doing it like Marc suggests.
Unless someone is willing to add some functions to the Image plugin. The source of the plugin is bundled in the plugin (like with the mail plugin) if I am not mistaken.

Unfortunately, I can not ask our clients to buy any software and convert their image files from PCT to JPG before loading into Servoy. I was preparing to write a converter tool that will convert all PCT images in a folder to JPG (would have to be run on a Mac), but thought that since PCT is a common Mac image format, and Servoy is cross-platform, that someone else would have had this problem and solved it already.

gdotzlaw:
Unfortunately, I can not ask our clients to buy any software and convert their image files from PCT to JPG before loading into Servoy. I was preparing to write a converter tool that will convert all PCT images in a folder to JPG (would have to be run on a Mac), but thought that since PCT is a common Mac image format, and Servoy is cross-platform, that someone else would have had this problem and solved it already.

This doesn’t seem too difficult, see for example:
http://lists.apple.com/archives/Java-de … 00605.html

So, this library : http://sourceforge.net/projects/qtjava/ seems the way to go.

Hope it helps.