[djatoka-devel] image distortion when rotating images using OpenURL service
Status: Beta
Brought to you by:
rchute
From: Shaun E. <sh...@pr...> - 2012-05-03 20:33:28
|
Hi folks, Perhaps someone can help me with this. I'm getting some strange results when trying to rotate an image using the Djatoka OpenURL service. Using the links below, one will notice that the document text is distorted and illegible when rotated 90 degrees. (180 degree rotation is fine, but 270 is also screwed up.) Normal: http://findingaidsdev.princeton.edu/images/adore-djatoka/resolver?url_ver=Z39.88-2004&rft_id=urn:pudl:images:deliverable:AC044/c0003/00000001.jp2&svc_id=info:lanl-repo/svc/getRegion&svc_val_fmt=info:ofi/fmt:kev:mtx:jpeg2000&svc.format=image/jpeg&svc.level=5&svc.rotate=0&mimetype=image.jpg Rotated 90 degrees: http://findingaidsdev.princeton.edu/images/adore-djatoka/resolver?url_ver=Z39.88-2004&rft_id=urn:pudl:images:deliverable:AC044/c0003/00000001.jp2&svc_id=info:lanl-repo/svc/getRegion&svc_val_fmt=info:ofi/fmt:kev:mtx:jpeg2000&svc.format=image/jpeg&svc.level=5&svc.rotate=90&mimetype=image.jpg I don't know if this matters, but this image was extracted from a PDF as a bitmap, converted to a TIFF and then compressed to JPEG2000 using the same compression "recipe" as we are for images produced in our photo studio (which rotate just fine). When rotating the JPEG2000 images in ImageMagick, the text is perfectly legible. Any thoughts? -- Shaun D. Ellis Digital Library Interface Developer Firestone Library, Princeton University voice: 609.258.1698 | sh...@pr... |