• 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: Reading NSData from a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Reading NSData from a file (From: Janine Sisk <email@hidden>)
 >Re: Reading NSData from a file (From: Chuck Hill <email@hidden>)
 >Re: Reading NSData from a file (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Reading NSData from a file
  • Next by Date: No file data from WOFileUpdate
  • Previous by thread: Re: Reading NSData from a file
  • Next by thread: Re: Reading NSData from a file
  • Index(es):
    • Date
    • Thread