aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/banners/shared/_banner_image.html.erb
Commit message (Collapse)AuthorAgeFilesLines
* Banners: Don't try to resize gifs.deploy-20200508Harald Eilertsen2020-05-081-1/+5
| | | | | | | | | | | | | | | | | | | ImageMagick does not handle resizing of animated gifs wery well. Optimized gifs will usually have individual sizes for each frame, only containing the actually changed image data. Each frame also have an offset from the origin. When ImageMagick tries to resize such an image, the offsets gets messed up and the result looks rather terrible. There's ways to handle this in ImageMagick, by first making all frames the same size (`convert -coalesce ...`) then resize (`convert -resize ...`) and finally optimize the gif again (`convert -layers Optimize ...`). However, this is a bit too much to handle when trying to download the animation, so it should be done on or before upload. For now, I think doing it offline before upload should be good enough. This _requires_ though, that the animation has the correct dimensions before upload!
* Add license header to files.Harald Eilertsen2018-06-171-1/+17
|
* Open banner targets in a new window/tab.Harald Eilertsen2014-02-161-1/+1
|
* Add refinery-banners engine.Harald Eilertsen2014-02-161-0/+1