$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [GIL] rotated90cw_view - jpeg lossless rotation
From: Jose (jmalv04_at_[hidden])
Date: 2009-12-06 05:10:32
I rotate jpeg photos to portrait by reading the file and saving it like this:
boost::gil::jpeg_write_view(file,
boost::gil::rotated90cw_view(boost::gil::view(img)));
results:
original size: 4106172 image/jpeg 3264 2448
rotated size: 5594681 image/jpeg 2448 3264
The rotation should be lossless (as the image is a multiple of the
jpeg MCU) but the size has increased significantly and the exif tags
disappeared.
My questions:
Has it been tested that the rotation is lossless ?
What can I do make sure the exif tags are preserved ?
thanks
jose