Skip navigation.
 
mlRe: Image scaling
FROM : Chris Williams
DATE : Sat Jan 05 01:19:46 2008

I have code that creates a JPEG thumbnail in an NSData using
NSBitmapImageRep and drawing into a new context, in a very threaded context
(often several threads doing it at the same time on different directories).
It was, admittedly, leaking like heck down in the OS somewhere, but I
wrapped it in my own autorelease pool and that seems to have cured it.  I
have had a thread work on 1M+ images and not run out of memory.

Not sure how to help you with the metadata, I explicitly wanted to strip it
for my app, so I can't help you there.  But let me know (off list) if you
want to see my code, and I'll happily provide it.  I'm not 1000% sure it's
rock solid, but I've been using it for a few months now in testing, and I
can't break it...

Chris

> From: Adam Knight <adam.<email_removed>>
> Subject: Image scaling
>
> I think I'm missing something here.

Related mailsAuthorDate
mlImage scaling Adam Knight Jan 4, 23:25
mlRe: Image scaling Adam Knight Jan 5, 00:45
mlRe: Image scaling John Stiles Jan 5, 00:51
mlRe: Image scaling Chris Williams Jan 5, 01:19
mlRe: Image scaling Scott Ribe Jan 5, 01:30
mlRe: Image scaling Scott Ribe Jan 5, 01:34
mlRe: Image scaling Shawn Erickson Jan 5, 01:56
mlRe: Image scaling Adam Knight Jan 7, 18:41