aboutsummaryrefslogtreecommitdiff
path: root/t/img.t
Commit message (Collapse)AuthorAge
* Work around Debian #771047: use a non-blank SVG for the regression testSimon McVittie2014-11-26
| | | | | | | Inkscape loses the bounding box of a SVG with no content when it converts it to EPS, and ImageMagick does not have a special case for converting SVG to PNG with Inkscape in one step (which Inkscape can do); it prefers to convert SVG to EPS with Inkscape, then EPS to whatever.
* img test: skip SVG tests if unsupported by Image::MagickSimon McVittie2014-09-16
|
* Pass -templatedir to get this test passing again.Amitai Schlair2014-09-15
|
* use readfile() instead of reinventing itSimon McVittie2014-09-01
| | | | | This avoids potential action-at-a-distance from locally redefining $/ but never reaching the end of the redefinition's scope.
* unit test for bugs/image_rescaling_distorts_with_small_pictureschrysn2014-07-15
|
* make img unittest easier to debugchrysn2014-07-15
|
* img plugin: split resizing calculations and actual resizingchrysn2014-07-15
| | | | | | | | | | | | | | | | | | | | | | there is now a size calculating part (which chooses a final size) and a scaling part (which triggers if the sizes calculated by the former indicate a downscaling). this solves the issue of unproportional upscalings (bugs/image_rescaling_distorts_with_small_pictures). also, "small" pdf files (or pdf files without explicit size settings), which would not be converted under the old mechanism, now get rendered to pngs. this commit affects a unit test: while svgs were previously unconditionally rendered to pngs, this now only happens on downscaling. this is intentional -- while a small version of an svg graphic is likely to be more compact when rendered (eg as a preview), a large version would not have that benefit, and why convert something that browsers basically can show and be inconsistend with how other images are handled. the new unit test simply makes the original svg larger to check for the same behaviros as before.
* drop unittest workaround for new perlmagickchrysn2014-07-04
| | | | just install -extra to make it work
* drop unittest workaround for perlmagickchrysn2014-07-04
| | | | this was actually http://bugs.debian.org/753770
* make unittest work with all all three packages that provide perlmagickchrysn2014-07-04
|
* add unittests for imgchrysn2014-07-04
this focuses on the features introduced in http://ikiwiki.info/bugs/svg_and_pdf_conversion_fails/