class
ActiveStorage::VariantProcessor::VipsProcessorAutorotTest
- ActiveStorage::VariantProcessor::VipsProcessorAutorotTest
- Minitest::Test
- Minitest::Runnable
- Reference
- Object
Overview
No image committed to the repo carries an Orientation tag, so the source is built here: libvips
writes its orientation metadata into Exif when it saves a JPEG.
:nodoc:
Defined in:
active_storage/variant_processor/vips_processor_test.crInstance Method Summary
-
#test_a_resize_applies_the_exif_orientation
The box applies to the viewed 30x40 image.
- #test_the_source_is_stored_unrotated_and_carries_the_orientation
-
#test_the_variant_is_not_rotated_again_when_it_is_viewed
Applied once: the variant is upright already, so a viewer honouring the Exif orientation of the variant must not turn it a second time.
Instance Method Detail
def test_a_resize_applies_the_exif_orientation
#
The box applies to the viewed 30x40 image. A processor that does not autorotate resizes the stored 40x30 and returns 60x45 instead.
def test_the_variant_is_not_rotated_again_when_it_is_viewed
#
Applied once: the variant is upright already, so a viewer honouring the Exif orientation of the variant must not turn it a second time.