"identify -verbose filename" has to be grepped for "bit" not "bits". Paths
should be surrounded by "\"" and on Windows there is no /dev/null. Not being
able to convert an image to a pgm-file is a serious error so I don't see why
you should suppress  such an error message.  "convert -flatten -strip
+compress" results in a pgm-file unreadble by GIMP and it's wrongly
displayed in both Emacs Image viewer and in an imagesc-created window in
octave - however "Eye of Gnome" reads it correct.

33a34,39
> ##
> ## Modified Kristian Rumberg <[EMAIL PROTECTED]>
> ## Date 2 April 2008
> ## Imread now works with BMP's created with "convert inputimage out.bmp"
> ## (tested with stable release Octave 3.0 in GNU/Linux and Windows XP),
> ## modified the calling parameters to identify and convert
71c77
<     [sys, ident] = system(sprintf('identify -verbose %s | grep -e "bits"
-e Type', fn));
---
>     [sys, ident] = system(sprintf('identify -verbose \"%s\" | grep -e
"bit" -e Type', fn));
75c81
<     depth = re_grab("([[:digit:]]{1,2})-bits", ident);
---
>     depth = re_grab("([[:digit:]]{1,2})-bit", ident);
101c107
<     cmd = sprintf("convert -flatten -strip +compress '%s' '%s'
2>/dev/null",
---
>     cmd = sprintf("convert \"%s\" \"%s\"",
127d132
<
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to