Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1846

Re: "This copy of gnuplot cannot read png/gif/jpeg images" problem

Newsgroups comp.graphics.apps.gnuplot
Date 2013-05-21 09:16 -0700
References <8f17c8c2-3703-4eb9-ba8b-907cd50127e1@googlegroups.com> <knevmi$3bu$1@dont-email.me> <a4a9dc41-7cf1-4a5b-a7a3-c862d1160d06@googlegroups.com>
Message-ID <d7afea36-082c-4d7a-a654-b32859b36668@googlegroups.com> (permalink)
Subject Re: "This copy of gnuplot cannot read png/gif/jpeg images" problem
From Rich Cook <wealthychef@gmail.com>

Show all headers | View raw


On Tuesday, May 21, 2013 9:13:26 AM UTC-7, Rich Cook wrote:
> On Monday, May 20, 2013 10:15:46 PM UTC-7, sfeam wrote:
> 
> > Rich Cook wrote:
> 
> > 
> 
> > 
> 
> > 
> 
> > > Hello, I am in charge of installing and maintaining gnuplot on our
> 
> > 
> 
> > > clusters and am by no means an expert.  Our user has reported the
> 
> > 
> 
> > > following is occurring:
> 
> > 
> 
> > > 
> 
> > 
> 
> > > gnuplot> plot 'test.png' binary filetype=png with rgbimage
> 
> > 
> 
> > >          This copy of gnuplot cannot read png/gif/jpeg images
> 
> > 
> 
> > > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > After googling a bit, I have looked in the build log for PNG entrails
> 
> > 
> 
> > > and see the following:
> 
> > 
> 
> > > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > checking for gdlib-config... /usr/bin/gdlib-config
> 
> > 
> 
> > > checking for gdImageCreateTrueColor in -lgd... yes
> 
> > 
> 
> > > checking gd.h usability... yes
> 
> > 
> 
> > > checking gd.h presence... yes
> 
> > 
> 
> > > checking for gd.h... yes
> 
> > 
> 
> > > checking for gdImageGif in -lgd... yes
> 
> > 
> 
> > > checking for gdImageGifAnimBegin in -lgd... yes
> 
> > 
> 
> > > checking for gdImageJpeg in -lgd... yes
> 
> > 
> 
> > > checking for gdImageStringFT in -lgd... yes
> 
> > 
> 
> > > checking for gdImagePng in -lgd... yes
> 
> > 
> 
> > > 
> 
> > 
> 
> > > ...
> 
> > 
> 
> > > 
> 
> > 
> 
> > >   jpeg terminal: yes
> 
> > 
> 
> > >   gif terminal: yes (with animated gif)
> 
> > 
> 
> > >   png terminal: yes
> 
> > 
> 
> > >     (jpeg, gif and png terminals can use TTF fonts)
> 
> > 
> 
> > >   pdf terminal: no (requires libpdf)
> 
> > 
> 
> > > ...
> 
> > 
> 
> > > 
> 
> > 
> 
> > >   cairo-based pdf and png terminals: yes
> 
> > 
> 
> > > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > I don';t understand why gnuplot thinks it cannot handle png files. 
> 
> > 
> 
> > > Can someone help me debug this one? Thanks.
> 
> > 
> 
> > 
> 
> > 
> 
> > That seems odd.  Please report the output from
> 
> > 
> 
> >   gnuplot -e "show version long"
> 
> > 
> 
> > 
> 
> > 
> 
> > There should be an entry  +GD_PNG
> 
> > 
> 
> > If this is present then it indicates that indeed the program should
> 
> > 
> 
> > be able to read png files.  If it's missing then I guess something
> 
> > 
> 
> > must have gone wrong with the configure+build at a later stage after
> 
> > 
> 
> > it had already reported that it was going to include png support.
> 
> > 
> 
> > You might have a look in config.log for error messages that mention
> 
> > 
> 
> > libgd. But really the info you show is self-contradictory so I
> 
> > 
> 
> > don't have a good guess at what could be wrong.
> 
> > 
> 
> > 
> 
> > 
> 
> > 	Ethan
> 
> 
> 
> The output seems confusing.  There is no +GD_PNG.  But there is -LIBGD.  I'm not sure where in the config.log or build process it decided to disable the PNG support. 
> 
> 
> 
> 
> 
> rcook@rzgpu2 (lclocal.el6): gnuplot -e "show version long" 
> 
> 
> 
>         G N U P L O T
> 
>         Version 4.6 patchlevel 1    last modified 2012-09-26 
> 
>         Build System: Linux x86_64
> 
> 
> 
>         Copyright (C) 1986-1993, 1998, 2004, 2007-2012
> 
>         Thomas Williams, Colin Kelley and many others
> 
> 
> 
>         gnuplot home:     http://www.gnuplot.info
> 
>         faq, bugs, etc:   type "help FAQ"
> 
>         immediate help:   type "help"  (plot window: hit 'h')
> 
> Compile options:
> 
> -READLINE  +LIBREADLINE  +HISTORY  
> 
> -BACKWARDS_COMPATIBILITY  +BINARY_DATA  
> 
> -LIBGD  
> 
> -USE_CWDRC  +X11  +X11_POLYGON  +MULTIBYTE  +X11_EXTERNAL +USE_MOUSE  +HIDDEN3D_QUADTREE  
> 
> +DATASTRINGS  +HISTOGRAMS  +OBJECTS  +STRINGVARS  +MACROS  +IMAGE  +USER_LINETYPES +STATS 
> 
> 
> 
> GNUPLOT_DRIVER_DIR = "/usr/local/tools/gnuplot-4.6.1/libexec/gnuplot/4.6"
> 
> GNUPLOT_PS_DIR     = "/usr/local/tools/gnuplot-4.6.1/share/gnuplot/4.6/PostScript"
> 
> HELPFILE           = "/usr/local/tools/gnuplot-4.6.1/share/gnuplot/4.6/gnuplot.gih"

I also see this in config.log:  

GDLIB_CONFIG='/usr/bin/gdlib-config'

And so I tried this: 

rcook@rzgpu2 (dpkg-mkdeb.GMTn7fiHG9): /usr/bin/gdlib-config --features
GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON

So the libgd that gnuplot is using has PNG support, I think.  

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

"This copy of gnuplot cannot read png/gif/jpeg images" problem Rich Cook <wealthychef@gmail.com> - 2013-05-20 19:15 -0700
  Re: "This copy of gnuplot cannot read png/gif/jpeg images" problem Rich Cook <wealthychef@gmail.com> - 2013-05-20 19:17 -0700
  Re: "This copy of gnuplot cannot read png/gif/jpeg images" problem sfeam <sfeam@users.sourceforge.net> - 2013-05-20 22:15 -0700
    Re: "This copy of gnuplot cannot read png/gif/jpeg images" problem Rich Cook <wealthychef@gmail.com> - 2013-05-21 09:13 -0700
      Re: "This copy of gnuplot cannot read png/gif/jpeg images" problem Rich Cook <wealthychef@gmail.com> - 2013-05-21 09:16 -0700
        Re: "This copy of gnuplot cannot read png/gif/jpeg images" problem Rich Cook <wealthychef@gmail.com> - 2013-05-21 09:49 -0700
      Re: "This copy of gnuplot cannot read png/gif/jpeg images" problem sfeam <sfeam@users.sourceforge.net> - 2013-05-21 11:52 -0700
        Re: "This copy of gnuplot cannot read png/gif/jpeg images" problem Rich Cook <wealthychef@gmail.com> - 2013-05-23 09:44 -0700
  Re: "This copy of gnuplot cannot read png/gif/jpeg images" problem ab <ab.3942@googlemail.com> - 2013-05-22 00:20 -0700

csiph-web