Skip to content

Commit

Permalink
Improve imagemagick detection
Browse files Browse the repository at this point in the history
  • Loading branch information
joouha committed Jan 9, 2024
1 parent 8aeae6d commit a122fb9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ Notable changes to this project will be documented in this file.
Upcoming
********

Changed
=======

- Improve ``imagemagick`` detection so it works on Debian


Added
=====

Expand Down
2 changes: 1 addition & 1 deletion euporie/core/convert/formats/png.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async def latex_to_png_py_mpl(
register(
from_=("svg", "jpeg", "pdf", "gif"),
to="png",
filter_=commands_exist("convert", "magick"),
filter_=commands_exist("convert", "mogrify"),
)(partial(imagemagick_convert, "PNG"))


Expand Down
2 changes: 1 addition & 1 deletion euporie/core/convert/formats/sixel.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def png_to_sixel_img2sixel(
register(
from_=("png", "jpeg", "svg", "pdf"),
to="sixel",
filter_=commands_exist("convert", "magick"),
filter_=commands_exist("convert", "mogrify"),
)(partial(imagemagick_convert, "sixel"))


Expand Down

0 comments on commit a122fb9

Please sign in to comment.