From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.user Subject: Re: Guile-CV: Not a GRAY, RGB nor an RGBA image "sand.tif" Date: Wed, 6 Dec 2017 00:23:31 -0200 Message-ID: <20171206002331.439f9774@capac> References: <20171205175403.3a2e8f71@capac> <20171205195540.49b4218e@capac> <87k1y0vj0c.fsf@netris.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/i9EW4MEd.km.BRW+410lYyn"; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1512577164 21314 195.159.176.226 (6 Dec 2017 16:19:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 6 Dec 2017 16:19:24 +0000 (UTC) Cc: guile-user@gnu.org To: Mark H Weaver Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Dec 06 17:19:20 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMcPD-0001Nn-Pc for guile-user@m.gmane.org; Wed, 06 Dec 2017 17:18:43 +0100 Original-Received: from localhost ([::1]:52784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMPNf-0002nd-C0 for guile-user@m.gmane.org; Tue, 05 Dec 2017 21:24:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMPNE-0002nG-PN for guile-user@gnu.org; Tue, 05 Dec 2017 21:23:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMPNA-0006Ui-QZ for guile-user@gnu.org; Tue, 05 Dec 2017 21:23:48 -0500 Original-Received: from maximusconfessor.all2all.org ([79.99.200.102]:40034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMPNA-0006UF-GG for guile-user@gnu.org; Tue, 05 Dec 2017 21:23:44 -0500 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id B5EACA04C181; Wed, 6 Dec 2017 03:23:43 +0100 (CET) Original-Received: from maximusconfessor.all2all.org ([192.168.0.1]) by localhost (maximusconfessor.all2all.org [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id bpeoueIkvI2s; Wed, 6 Dec 2017 03:23:39 +0100 (CET) Original-Received: from capac (unknown [179.210.16.18]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 31E54A04C177; Wed, 6 Dec 2017 03:23:37 +0100 (CET) In-Reply-To: <87k1y0vj0c.fsf@netris.org> X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 79.99.200.102 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14321 Archived-At: --Sig_/i9EW4MEd.km.BRW+410lYyn Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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 =3D "/usr/alto/projects/guile-cv/images" =20 > >> unfortunately that's not the problem, I am in the right directory and > >> the image is there. I still get that error. =20 > > This is impossible :), you think you are in the right directory, but yo= u most > > likely you are not. =20 > 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 dist= ributed 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 mis= sing the working example lines ... Hence my 'this is impossible :)', a funny tone, i= n 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 p= ath problem. Daniele, Could you try to load the image specifying the full path name and report he= re 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 case= s. 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* mea= nt "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 tha= t 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 libtif= f. --Sig_/i9EW4MEd.km.BRW+410lYyn Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAlonVKMACgkQ83T9k6MF etc5Ugf/VZcQ+jCGIqJwG1L4UPV8li3NSaz1K75oIW+TEriE/OmUgVR5TQmVJaTj OgbN6TEFWf6N4iow1cKuN0cA2A6JcO27YkdEZRcNxbaeiA49uBmS7zbW5YnIy3fv MeFjPQqNU9Y+sXLUkOIfEEYouPtoe5PYTz0OIbEjUEn+gTmiSQFI5wzBoQ1INNcM Nnw+alMaOwAJJ1W8rAtSVjSOzcpkpRwxKcnnjS9cabKM3CMS6GapquQKFhbWU0Vw 54M3z55EV19tEocf2oOxSBQMuvjQydxmC7Out/H5fewF6+RKN+qNwjvSG952RbyC 4cUZwyzOHtugC5Ol2K0R9SLuFeJ0Xw== =TDpI -----END PGP SIGNATURE----- --Sig_/i9EW4MEd.km.BRW+410lYyn--