Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc/img2xterm: update ImageMagick dependency
* Update dependency from old ImageMagick-6 to current * Various minor changes to make portlint happy * Submitter becomes maintainer (already maintainer of sysutils/modules) PR: 276266 Reported by: laurent.chardon@gmail.com
- Loading branch information
1 parent
cb0e21a
commit ceb72bf
Showing
4 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- img2xterm.c.orig 2024-01-11 14:08:58 UTC | ||
+++ img2xterm.c | ||
@@ -7,7 +7,7 @@ | ||
#include <sys/ioctl.h> | ||
#include <limits.h> | ||
#include <math.h> | ||
-#include <wand/MagickWand.h> | ||
+#include <MagickWand/MagickWand.h> | ||
#include <unistd.h> | ||
|
||
#ifndef NO_CURSES | ||
@@ -288,7 +288,7 @@ void xtermfit(MagickWand* wand) | ||
int scaled_width = (int)floor(rs > ri ? wi * hs / hi : ws); | ||
int scaled_height = (int)floor(rs > ri ? hs : hi * ws / wi); | ||
|
||
- MagickResizeImage(wand, scaled_width, scaled_height, LanczosFilter, 1); | ||
+ MagickResizeImage(wand, scaled_width, scaled_height, LanczosFilter); | ||
} | ||
|
||
void usage(int ret, const char* binname) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
Display images in terminal | ||
img2xterm is a program that can display bitmap images on 256-colour terminals | ||
by converting them into Unicode block characters and xterm compatible control | ||
sequences. |