Hello. I don't use English on a usually. Sorry for the hard-to-read my
message.

Thank you for publishing such a wonderful library.

I want to resize an image, and apply Exif meta information (orientation
direction, author, and so on) in original to the image after resized image.
My code is like this.

--- begin ---
// Original Image
byte[] original = load(file); // some loader

// Edit (resize, rotate, ..)
byte[] resized = resize(original, width, height); // some edit methods

// Apply original metadata into resized image
TiffImageMetadata exif = ((JpegImageMetadata)
Imaging.getMetadata(original)).getExif();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
new ExifRewriter().updateExifMetadataLossy(resized, baos,
exif.getOutputSet());
byte[] result = baos.toByteArray();
--- end ---

Can I apply the OutputSet got from the original image to the image after
resizing with ExifRewriter ?

My question is that if the Dimension information such as Orientation
information contained in Exif is reflected by ExifRewriter, it will affect
the actual image size. Doesn't the direction and the Exif information
conflict with each other?

My concerns are unnecessary? Please teach me.

--
cotton

Reply via email to