sul-dlss / assembly-image

Creates JP2 image derivatives of files.
Other
0 stars 1 forks source link

Autorotate temporary tiff file #91

Closed jcoyne closed 2 years ago

jcoyne commented 2 years ago

Why was this change made? 🤔

Fixes #37

How was this change tested? 🤨

Tested on the console via:

image = Assembly::Image.new('spec/test_data/color_rgb_srgb_rot90cw.tif')
creator = Assembly::Image::Jp2Creator.new(image, {})
creator.send(:make_tmp_tiff)
ndushay commented 2 years ago

@calavano made a suggestion of doing the autorotate on the Vips::Image we create, rather than on the temporary tiff, so height and width are correct, etc. See PR #95

ndushay commented 2 years ago

PR #95 was merged; closing this.