Re: Reading NSData from a file
Re: Reading NSData from a file
- Subject: Re: Reading NSData from a file
- From: Mike Schrag <email@hidden>
- Date: Tue, 3 Apr 2007 01:00:12 -0400
* 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden