@@ -19,8 +19,15 @@ include("../utilities/prelude.jl")
1919 )
2020 cell = json. cells[6 ]
2121 metadata = cell. outputs[1 ]. metadata[" image/png" ]
22- @test metadata. width == 625
23- @test metadata. height == 469
22+ pngbytes = Base64. base64decode (cell. outputs[1 ]. data[" image/png" ])
23+ px_size = QuartoNotebookRunner. png_image_metadata (
24+ pngbytes;
25+ phys_correction = false ,
26+ )
27+ @test metadata. width == 600
28+ @test metadata. height == 450
29+ @test px_size. width == 625
30+ @test px_size. height == 469
2431
2532 options_file = " temp_options.json"
2633 open (options_file, " w" ) do io
@@ -35,8 +42,15 @@ include("../utilities/prelude.jl")
3542 )
3643 cell = json. cells[6 ]
3744 metadata = cell. outputs[1 ]. metadata[" image/png" ]
38- @test metadata. width == 625
39- @test metadata. height == 469
45+ pngbytes = Base64. base64decode (cell. outputs[1 ]. data[" image/png" ])
46+ px_size = QuartoNotebookRunner. png_image_metadata (
47+ pngbytes;
48+ phys_correction = false ,
49+ )
50+ @test metadata. width == 600
51+ @test metadata. height == 450
52+ @test px_size. width == 625
53+ @test px_size. height == 469
4054
4155 close! (server)
4256 end
0 commit comments