• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Image manipulation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image manipulation


  • Subject: Re: Image manipulation
  • From: Alex Johnson <email@hidden>
  • Date: Wed, 13 Jul 2005 11:24:44 -0500

Hi --

If you are on MacOS X, you can check out the command line program "sips" (sips --help). It works with an obscenely large set of image formats (even PDF, IIRC), and you don't need to load the whole image into your app's memory, or load the AWT (even headless it uses a lot of RAM). There are, of course, some catches:

- There is little or no documentation for sips.

- There is a memory leak in (some versions of) Apple's implementation of Runtime.exec()
... you need to explicitly close all of the i/o streams for the Process.


Alex Johnson

|| | ||| || | ||| | | | || || |||
\\ SITE 9 \\ SITE9.COM \\ 312.670.8469 \\


On Jul 12, 2005, at 4:48 PM, Robert Walker wrote:

I use Java Advanced Imaging (JAI) for this. Feel free to contact me off list if you would like to discuss and see some examples.

On Jul 12, 2005, at 3:11 PM, Dev WO wrote:

Hi,
I've been searching the list, the Web and Apple's examples for a sample of image manipulation...
I have found different posts related to awt, the headless problem and things like that, but I couldn't find a simple sample on how to use them.

Basically, I know how to get the image into an NSData object, and save it to disk (thanks to "WebObjects for mac OS X" book), but I couldn't figure out how to create the new file from it (one small and on bigger).
I tried to read the different API's, but this is a little to ununderstandable for me at this time (getting better though).
If possible I'd like to get the image in various format (at least jpg and png) and save to png (but I don't know how difficult it is to handle the different png flavor like 24bits).

If someone has a sample I could learn from, I'll be more than happy;)

Thanks a lot

Xavier

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Image manipulation
      • From: Dev WO <email@hidden>
References: 
 >Image manipulation (From: Dev WO <email@hidden>)
 >Re: Image manipulation (From: Robert Walker <email@hidden>)

  • Prev by Date: Re: could not connect to WO-Apps on 10.4 Tiger
  • Next by Date: Re: could not connect to WO-Apps on 10.4 Tiger
  • Previous by thread: Re: Image manipulation
  • Next by thread: Re: Image manipulation
  • Index(es):
    • Date
    • Thread