Remove EXIF data?

14 February 2009 22:36 (EST)
Does anyone know how to remove EXIF data from image?

It looks like cfimage keeps all EXIF information upon resizing, so produced small thumbnail 75x75 px will be around 20K instead of just 2K because of extra data.

Discussion (2 comments)

John Whish John Whish: 16 February 2009 23:26 (EST)

Just a thought, but this might work?

blank = ImageNew( "",200,200,"rgb" );
photo = ImageRead( path );
photo = ImageOverlay( blank, photo );

Dmitry Yakhnov Dmitry Yakhnov: 24 February 2009 23:51 (EST)

Thank's a lot, your solution works:

photo = ImageRead("test.jpg");
blank = ImageNew("",photo.width,photo.height,"rgb");
clipboard = ImageCopy(photo,0,0,photo.width,photo.height);
ImagePaste(blank,clipboard,0,0);
ImageWrite(blank,"test-result.jpg",0.8);

Add your comment
*
*
*
*
*

Captcha Code Please enter the number on the left.
Sorry for asking you to do so.
Reload image