aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/analyzer
Commit message (Collapse)AuthorAgeFilesLines
* Don't fail ImageAnalyzer on unsupported typesGuilherme Mansur2019-04-241-0/+8
| | | | | | | | | | Fix: #36065 The IamgeAnalyzer passes a image to ImageMagick without checking if the image is supported by ImageMagick. This patch checks that image is supported and if not logs an error and returns an empty hash instead of raising an error. This is the same error handling we do when we encounter a LoadError when mini_magick is not installed.
* Move #extract_metadata_from to ActiveStorage's TestHelperRicardo Díaz2018-04-252-10/+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
|
* Cope with videos with undefined display aspect ratiosGeorge Claghorn2018-01-201-0/+9
|
* Use helper methodGeorge Claghorn2018-01-191-1/+2
|
* Preserve display aspect ratio for videos with rectangular samplesGeorge Claghorn2018-01-191-4/+18
|
* Extract content types from blob dataGeorge Claghorn2018-01-151-1/+1
|
* 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.
* Swap raw video width and height if angle is 90 or 270 degreesGeorge Claghorn2017-12-081-2/+2
|
* Extract metadata from images and videosGeorge Claghorn2017-10-222-0/+51