0

I want to scale images to 400x400 (I am creating thumbnails). I am using the Scriptable Image Processing System (SIPS) in a Cocoa application, but the problem is poor efficiency. SIPS takes 70-90% CPU while converting 300 images in 20 seconds. Should I use the CIImage class (CIImage is the type required to use the various GPU-optimized Core Image filters) or NSImage class? Can anyone suggest a better method?

Jerry
  • 966
  • 2
  • 13
  • 28
Parag Bafna
  • 22,812
  • 8
  • 71
  • 144

2 Answers2

0

A very simple and fast way to generate thumbnails on OS X is to use QLThumbnailImageCreate.
It's just one line of code so you can easily try out how it compares to SIPS & Core Image.

Thomas Zoechling
  • 34,177
  • 3
  • 81
  • 112
  • Thank you for your suggestion. I am using sips because it is efficient then Core image and QLThumbnailImageCreate. – Parag Bafna Dec 02 '11 at 08:18
0

I tried thumbnail genration using NSImage , CIImage and sips. All are taking same CPU (70-90%) usage but sips is faster.

Parag Bafna
  • 22,812
  • 8
  • 71
  • 144