imageinfo fails in Ubuntu 23.04 with a "no such file or directory" error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
imageinfo (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
imageinfo fails in Ubuntu 23.04 with a "no such file or directory" error, eg:
$ imageinfo --size /usr/share/
imageinfo: unable to open image `��s��U': No such file or directory @ error/blob.
$ imageinfo --size /usr/share/
imageinfo: unable to open image `�=�V': No such file or directory @ error/blob.
The filename it complains is not found seems to be random and changes each time. Under WSL, it fails but just says "unable to open image `': No such file", ie it doesn't show the random text.
ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: imageinfo 0.04-0ubuntu12
ProcVersionSign
Uname: Linux 6.1.0-16-generic x86_64
ApportVersion: 2.26.0-0ubuntu2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Sat Mar 18 16:31:02 2023
InstallationDate: Installed on 2021-09-28 (536 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Beta amd64 (20210924)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
SourcePackage: imageinfo
UpgradeStatus: Upgraded to lunar on 2023-03-16 (1 days ago)
I tried to build imageinfo from source (using apt source imageinfo) but after installing the build-deps (sudo apt build-dep imageinfo) and also the extra package required for Magick-config so configure will succeed, it fails to build with the error "imageinfo. c:373:15: error: ‘Image’ has no member named ‘color_profile’":
$ make IS_BIG_ ENDIAN= 0 -DIMINVERSION= \"0.04\ " @MAGICK_CFLAGS@ but-set- variable] declarations] magick/ enum_strings. h:23,
from /usr/include/ magick/ api.h:84,
from imageinfo.c:27: magick/ pixel_cache. h:105:4: note: declared here >color_ profile) ;
gcc -c imageinfo.c -g -O2 -Wall -DARCH_
imageinfo.c: In function ‘main’:
imageinfo.c:99:9: warning: variable ‘orientswitch’ set but not used [-Wunused-
99 | float orientswitch = 5.0;
| ^~~~~~~~~~~~
imageinfo.c: In function ‘signature’:
imageinfo.c:239:9: warning: ‘GetIndexes’ is deprecated [-Wdeprecated-
239 | ip = GetIndexes(image);
| ^~
In file included from /usr/include/
/usr/include/
105 | *GetIndexes(const Image *image)
| ^~~~~~~~~~
imageinfo.c: In function ‘piccmd5’:
imageinfo.c:373:15: error: ‘Image’ has no member named ‘color_profile’
373 | pi = &(image-
| ^~
make: *** [Makefile:57: imageinfo.o] Error 1