aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/analyzer/image_analyzer_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move #extract_metadata_from to ActiveStorage's TestHelperRicardo Díaz2018-04-251-5/+0
| | | | | | ImageAnalyzerTest and VideoAnalyzerTest are defining the same helper, since both use `#create_file_blob` that is defined in TestHelper, it makes sense to move `#extract_metadata_from` to that side.
* Correct orientation detectionGeorge Claghorn2018-01-311-2/+2
|
* Swap encoded image width and height if angle is 90 or 270 degreesGeorge Claghorn2018-01-311-2/+15
|
* Append extension to tempfile nameGeorge Claghorn2017-12-311-1/+9
| | | | | | Fixes analyzing an SVG image without an XML declaration. ImageMagick occasionally looks to the extension when it can't discern the type of an image file from its contents. References #31356.
* Extract metadata from images and videosGeorge Claghorn2017-10-221-0/+16