* Change animated GIF detection to not shell out to ImageMagick
Signed-off-by: Eugen Rochko <eugen@zeonfederated.com>
* Change video encoding parameters to limit to 10800 video frames
Signed-off-by: Eugen Rochko <eugen@zeonfederated.com>
* Limit GIF image size further
Signed-off-by: Eugen Rochko <eugen@zeonfederated.com>
* Always strip metadata from video files
* Fix code style issues
raiseMastodon::DimensionsValidationError,"#{width}x#{height} images are not supported, must be below #{MAX_MATRIX_LIMIT} sqpx"ifwidth.present?&&height.present?&&(width*height>=MAX_MATRIX_LIMIT)
raiseMastodon::DimensionsValidationError,"#{width}x#{height} images are not supported"ifwidth.present?&&height.present?&&(width*height>matrix_limit)