Skip to content

Commit cedea04

Browse files
committed
add tests
1 parent b5d84f4 commit cedea04

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/constructed_images.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,4 +354,16 @@ mutable struct TestType end
354354
exportimagepixels!(buf2view, wand, cs, channelorder)
355355
@test buf2view == Ar
356356
end
357+
358+
@testset "PDF" begin
359+
pdf = ImageMagick.load("images/FLAT_-_What_is_Creative_Commons.pdf")
360+
@test size(pdf) == (405, 720, 10)
361+
362+
fn = joinpath(workdir, "cc.pdf")
363+
ImageMagick.save(fn, pdf)
364+
@test ImageMagick.load(fn) == pdf
365+
366+
pdf_100dpi = ImageMagick.load("images/FLAT_-_What_is_Creative_Commons.pdf"; dpi=100)
367+
@test size(pdf_100dpi) == (563, 1000, 10)
368+
end
357369
end
99.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)