Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonschaub committed Feb 2, 2023
1 parent b5d84f4 commit cedea04
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/constructed_images.jl
Original file line number Diff line number Diff line change
Expand Up @@ -354,4 +354,16 @@ mutable struct TestType end
exportimagepixels!(buf2view, wand, cs, channelorder)
@test buf2view == Ar
end

@testset "PDF" begin
pdf = ImageMagick.load("images/FLAT_-_What_is_Creative_Commons.pdf")
@test size(pdf) == (405, 720, 10)

fn = joinpath(workdir, "cc.pdf")
ImageMagick.save(fn, pdf)
@test ImageMagick.load(fn) == pdf

pdf_100dpi = ImageMagick.load("images/FLAT_-_What_is_Creative_Commons.pdf"; dpi=100)
@test size(pdf_100dpi) == (563, 1000, 10)
end
end
Binary file added test/images/FLAT_-_What_is_Creative_Commons.pdf
Binary file not shown.

0 comments on commit cedea04

Please sign in to comment.