* Slow, Easy, Pure Java, Cross Platform = JAI / Java2D (JAI is not hardware accelerated on OS X) * Faster, Pretty Annoying, Native, Mostly Cross Platform (portable c) = System call to ImageMagick * Faster, Way Annoying, Native, Mostly Cross Platform (portable c) = JNI ImageMagick (this has huge memory pitfalls, don't do it)
* Really Fast, Easy, OS X Only = System call to 'sips'
* Super Fast, More Annoying, OS X Only = JNI CoreImage/ImageIO (Brendan posted his version of this on wocode)
Oh, and be careful/aware of memory usage ... Loading into a BufferedImage in Java (unless you work at it) is going to be the uncompressed raw int buffers in memory. That means 3 x width x height. So if you're taking in 3 Meg JPEGs, that might be REALLY big in memory. ImageIO (on OS X, not the same named Java library), on the other hand, appears to be able to scale images while streaming, so you can thumbnail a 2.5G (G, not M) PSD without falling over.

ms

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to