TerminalImageViewer icon indicating copy to clipboard operation
TerminalImageViewer copied to clipboard

ImageMagick: use "magick" instead of "convert"

Open forthrin opened this issue 1 week ago • 5 comments

Describe the Bug

WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"

To Reproduce

$ tiv image.heic 

Expected Behavio(u)r

No warning

Screenshots

No response

Version/Commit Hash

Terminal Image Viewer v1.2.1

OS Specifics

System Version: macOS 26.1 (25B78) Model Identifier: MacBookAir10,1

forthrin avatar Dec 10 '25 10:12 forthrin

I'm fairly sure this is an issue with https://github.com/GreycLab/CImg, the library we depend on.

aaronliu0130 avatar Dec 12 '25 01:12 aaronliu0130

Then the appropriate thing to do would be to upstream the issue there.

forthrin avatar Dec 12 '25 05:12 forthrin

Does the message always appear -- does heic work at all?

I am wondering why imagemagick would print this warning, as we are using it as a library... Perhaps their command detection is off in a weird way?

stefanhaustein avatar Dec 12 '25 07:12 stefanhaustein

https://imagemagick.org/script/porting.php

IMPORTANT: The "magick" command is the new primary command of the Shell API, replacing the old "convert" command. To reduce the footprint of the command-line utilities, these utilities are symbolic links to the magick utility. Do not use magick convert. That is simply magick.

forthrin avatar Dec 12 '25 09:12 forthrin

I was going to confirm with a minimal CImg example and then file an issue upstream, but I forgot. Sorry about that. That should probably be our next step.

On Fri, Dec 12, 2025 at 12:55 AM forthrin @.***> wrote:

forthrin left a comment (stefanhaustein/TerminalImageViewer#147) https://github.com/stefanhaustein/TerminalImageViewer/issues/147#issuecomment-3645030484

Then the appropriate thing to do would be to upstream the issue there.

— Reply to this email directly, view it on GitHub https://github.com/stefanhaustein/TerminalImageViewer/issues/147#issuecomment-3645030484, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2S7IYQNVW4QOV743GY2KT4BJKEDAVCNFSM6AAAAACOTGYLEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNBVGAZTANBYGQ . You are receiving this because you modified the open/close state.Message ID: @.***>

aaronliu0130 avatar Dec 12 '25 12:12 aaronliu0130