• 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 scaling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image scaling


  • Subject: Re: Image scaling
  • From: Adam Knight <email@hidden>
  • Date: Fri, 4 Jan 2008 17:45:50 -0600

On Jan 4, 2008, at 4:25 PM, Adam Knight wrote:

I tried this using CIImage and a CILanczosScaleTransform filter then using NSBitmapImageRep's initWithCIImage method. This worked very well and made a great image, but it looks like Apple's initWithCIImage code leaks a whole copy of the image outside of my reach. I'm working with too many images for this to be good. Also, this method drops the file metadata entirely (EXIF, etc.) and doesn't appear to give me the chance to add it back in.

I take this back -- even this method produces slightly blurry scaled images. Is there anything in the system that can make a sharp, proper scaled image?


Examples:
http://www.bssware.com/~ahknight/good_scale.jpg (Image uploaded to Flickr in full size, the resulting image at 500px wide)
http://www.bssware.com/~ahknight/bad_scale.jpg (Scaled using either CG or CI to 500 pixels wide)



Adam Knight Co-Founder; CTO Barton Springs Software

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Image scaling
      • From: Scott Ribe <email@hidden>
    • Re: Image scaling
      • From: John Stiles <email@hidden>
References: 
 >Image scaling (From: Adam Knight <email@hidden>)

  • Prev by Date: Re: Accessing script run handler from NSAppleScript
  • Next by Date: Re: Image scaling
  • Previous by thread: Image scaling
  • Next by thread: Re: Image scaling
  • Index(es):
    • Date
    • Thread