> -----Original Message----- > From: Sandeep Deshpande [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 26, 2005 6:43 AM > Subject: Image Conversion to JPEG > > Hi all, > I have this typical requirement on Mac system and I want to use Perl. > > 1) I have to open Illustrator EPS files in Illustrator and have to save it > as JPG at the same location. > 2) Open Photoshop EPS in Photoshop and save it to JPG at the same > location. > 3) TIFF could be opened in any application and save it to JPG. > > There are a few extra settings like: > Resolution should be 120 dpi > Trim white edges > Color mode should be RGB > > Could anyone guide me on how to do it?
I don't know if it can be done by controlling Photoshop or Illustrator. Adobe are often unhelpful about externally scripting their products. They support internal scripting through "actions" and with some apps they allow java scripts but often disable file conversion related functionality. You could try something external, but will need to make sure it supports postscript and depending on your source EPS files, you may need quite sophisticated postscript support. Immediate options would be GhostScript which I recal has a perl module but can be a bit arcane to use and ImageAlchemy from Handmade Software (www.handmadesw.com). There's no direct perl control for IA but you can call it from the command line and it's pretty robust. OTOH GhostScript is free. Be careful trimming margins as unless you have consistent borders around your material, automated processing can strip off artistic use of whitespace. Depending on what you're doing, if you have a consistent margin around the image, it might be better to crop the image using fixed margin values rather than doing it on the run. Good luck. Steve ******************************************************************************** NOTICE This email and any attachments are confidential. They may contain privileged information or copyright material. If you are not an intended recipient, you should not read, copy, use or disclose the contents without authorisation and we request you contact us at once by return email. Please then delete the email and any attachments from your system. We do not accept liability in connection with computer viruses, data corruption, delay, interruption, unauthorised access or unauthorised amendment. Any views expressed in this email and any attachments do not necessarily reflect the views of the company. ******************************************************************************** _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
