From: David Pirotte <david@altosw.be>
To: Mark H Weaver <mhw@netris.org>
Cc: guile-user@gnu.org
Subject: Re: Guile-CV: Not a GRAY, RGB nor an RGBA image "sand.tif"
Date: Wed, 6 Dec 2017 00:23:31 -0200 [thread overview]
Message-ID: <20171206002331.439f9774@capac> (raw)
In-Reply-To: <87k1y0vj0c.fsf@netris.org>
[-- Attachment #1: Type: text/plain, Size: 2679 bytes --]
Hello Mark,
> >> > Yes: your are not in the right directory wrt guile, and this flename 'does not
> >> > exists', it does not exists in the directory your are trying to load this
> >> > image, see:
> >> > scheme@(guile-user)> (getcwd)
> >> > $5 = "/usr/alto/projects/guile-cv/images"
> >> unfortunately that's not the problem, I am in the right directory and
> >> the image is there. I still get that error.
> > This is impossible :), you think you are in the right directory, but you most
> > likely you are not.
> David, with all due respect, this last response to Daniele comes off as
> very dismissive and presumptuous to me.
I'm very sorry you did feel this way: that image is part of the images distributed
with Guile-CV, so it definitely loads, as shown in my pasted an example in the
previous, partially quoted message (by Daniele), quoted (partially) but missing the
working example lines ... Hence my 'this is impossible :)', a funny tone, in my
intention, while an invitation to try other (suggested) things to find out the cause
(which is not the image format).
Since that image is distributed with Guile-CV, unless the file was somehow corrupted
(which I also suggest a command to double check), the problem is really a path
problem.
Daniele,
Could you try to load the image specifying the full path name and report here
thanks:
,use (cv)
(im-load "/your-guile-cv-clone-path/doc/images/sand.tif")
> The error message "Not a GRAY, RGB nor an RGBA image" would seem to
> indicate that the image Daniele is attempting to load is not supported
> by the image loading library, or at least that this is a possibility.
That message comes from Guile-CV itself, and intentionally covers both cases. I can
change that.
> ... I find it hard to believe that the software developer who wrote this code
> would have written "Not a GRAY, RGB nor an RGBA image" if it *always* meant "file
> not found".
I did, nobody is perfect :). It does not *always* mean "file not found", it covers
both this case and a 'wrong format' (or corrupted file) ... I'll change that and push
a fix asap.
Cheers,
David
For info:
> According to Wikipedia, TIFF supports image types other than GRAY, RGB,
> and RGBA. Baseline TIFF also supports bilevel and palette-color images,
> and there are extensions that support CMYK, YCbCr, CIE L*a*b* and
> others.
Guile-CV relies on Vigra for all image formats it allows, and Vigra depends on
third libraries (see Guile-CV and Vigra doc for more info on this) ... in this
particular case, it will accept and load any tiff file 'accepted' by libtiff.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2017-12-06 2:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-05 15:30 Guile-CV: Not a GRAY, RGB nor an RGBA image "sand.tif" Daniele
2017-12-05 19:54 ` David Pirotte
2017-12-05 21:04 ` Daniele
2017-12-05 21:55 ` David Pirotte
2017-12-05 23:42 ` Mark H Weaver
2017-12-06 2:23 ` David Pirotte [this message]
2017-12-06 3:34 ` Mark H Weaver
2017-12-06 8:47 ` tomas
2017-12-06 7:12 ` Daniele
[not found] ` <CAFmhb5GxuLK2k+2z_JzSPBx3dV7wVP=wG55HFXFdHsKCp96YKQ@mail.gmail.com>
2017-12-06 14:47 ` David Pirotte
2017-12-06 15:20 ` Daniele
2017-12-06 18:43 ` David Pirotte
2017-12-06 20:27 ` Daniele
2017-12-06 23:49 ` David Pirotte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171206002331.439f9774@capac \
--to=david@altosw.be \
--cc=guile-user@gnu.org \
--cc=mhw@netris.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).