Skip to content

Commit

Permalink
Try file/convertible {svg png}bytes+bounds8 formats; fixes #727
Browse files Browse the repository at this point in the history
  • Loading branch information
greghendershott committed Nov 12, 2024
1 parent 04bdadf commit 06cdcfb
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions racket/image.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@
;; - Within each flavor: Try svg (if this Emacs can use it)
;; before png. Because space.
(define fmts/exts (if use-svg?
'((svg-bytes+bounds "svg")
(png-bytes+bounds "png")
(svg-bytes "svg")
(png-bytes "png"))
'((png-bytes+bounds "png")
(png-bytes "png"))))
'((svg-bytes+bounds8 "svg")
(png-bytes+bounds8 "png")
(svg-bytes+bounds "svg")
(png-bytes+bounds "png")
(svg-bytes "svg")
(png-bytes "png"))
'((png-bytes+bounds8 "png")
(png-bytes+bounds "png")
(png-bytes "png"))))
(for/or ([fmt/ext (in-list fmts/exts)])
(apply convert-and-save v fmt/ext)))

Expand Down

0 comments on commit 06cdcfb

Please sign in to comment.