rajkumarsaroj / java-image-scaling

Automatically exported from code.google.com/p/java-image-scaling
Other
0 stars 0 forks source link

Problem with images rotating after scaling #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Scale image (See attached image)
2. Image is rotated 90 degrees after rescaling

What is the expected output? What do you see instead?
Not rotated

I assume that it is related to some exif information that contains rotation - 
which is not being copied.

Original issue reported on code.google.com by m%nobel-...@gtempaccount.com on 6 Dec 2010 at 9:49

Attachments:

GoogleCodeExporter commented 8 years ago
As suspected the problem was missing meta data.

I have added a utility function that makes it easy to copy jpeg meta data (such 
as exif) from one image (original) to another (rescaled).

See com.mortennobel.imagescaling.ImageUtils.copyJpegMetaData()

Original comment by m%nobel-...@gtempaccount.com on 7 Dec 2010 at 8:14