LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-20-2009, 01:38 PM   #1
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
conky and images


I can't get conky to display and image and I have absolutely no idea why. Can anyone point out why it doesn't work?

Code:
mike@continuity:~$ /home/mike/myapps/bin/conky
Conky: desktop window (1c000a8) is subwindow of root window (1a6)
Conky: drawing to desktop window
Conky: drawing to double buffer
Conky: Unable to load image '/home/mike/firefoxuserpic.jpg'
Conky: Unable to load image '/home/mike/firefoxuserpic.jpg'
Conky: Unable to load image '/home/mike/firefoxuserpic.jpg'
Conky: Unable to load image '/home/mike/firefoxuserpic.jpg'
Conky: Unable to load image '/home/mike/firefoxuserpic.jpg'
^CConky: received SIGINT or SIGTERM to terminate. bye!
mike@continuity:~$ file /home/mike/firefoxuserpic.jpg
/home/mike/firefoxuserpic.jpg: JPEG image data, JFIF standard 1.01
mike@continuity:~$ ls -lh /home/mike/firefoxuserpic.jpg
-rw-r--r-- 1 mike users 3.6K 2007-03-15 22:00 /home/mike/firefoxuserpic.jpg
mike@continuity:~$ /home/mike/myapps/bin/conky -v
Conky 1.7.2 compiled Tue Oct 20 17:45:15 BST 2009 for Linux 2.6.27.29-0.1-pae (i686)

Compiled in features:

System config file: /home/mike/myapps/etc/conky/conky.conf
Package library path: /home/mike/myapps/lib/conky

 X11:
  * Xdamage extension
  * XDBE (double buffer extension)
  * Xft

 Music detection:
  * MPD
  * MOC

 General:
  * math
  * hddtemp
  * portmon
  * Curl
  * RSS
  * config-output
  * Imlib2
  * ALSA mixer support
  * apcupsd
  * iostats
  * Lua

  Lua bindings:
mike@continuity:~$ cat .conkyrc
double_buffer yes
imlib_cache_size 0


alignment top_left
background no
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=12
gap_x 5
gap_y 60
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
#own_window yes
own_window_class Conky
own_window_type desktop
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no



TEXT
${image ~/firefoxuserpic.jpg -p 20,20 -s 480x640}
 
Old 10-22-2009, 07:25 AM   #2
nateb
LQ Newbie
 
Registered: Oct 2009
Distribution: PopOS, Alma
Posts: 12

Rep: Reputation: 2
That seems pretty strange. I just copied your .conkyrc exactly, put a random jpeg under ~/firefoxuserpic.jpg and it worked fine. Conky is compiled with roughly the same options here as well, though I think its just the imlib2 option that is important for pictures:
Code:
conky -v
Conky 1.7.2 compiled Tue Oct 20 04:46:55 UTC 2009 for Linux 2.6.31-ARCH (x86_64)

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky

 X11:
  * Xdamage extension
  * XDBE (double buffer extension)
  * Xft

 Music detection:
  * MPD
  * MOC

 General:
  * math
  * hddtemp
  * portmon
  * Curl
  * RSS
  * wireless
  * support for IBM/Lenovo notebooks
  * config-output
  * Imlib2
  * ALSA mixer support
  * apcupsd
  * iostats
I would ask if there is definitely an image called firefoxuserpic.jpg in your home directory but you've already shown that. Have you tried some alternative images? Maybe conky is just having an issue with that one? Other than that I'm not really sure. Do normal text-only configs work?
 
Old 10-22-2009, 07:40 AM   #3
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Original Poster
Rep: Reputation: 198Reputation: 198
Yeah I've tried other jpg images, same result. I tried png images instead, same result. Text only configs include rss feeds work. I've since compiled conky on another machine with the same options and it works fine there.
The machine is doesn't work on runs openSUSE 11.1, the one it does work on runs SLED 11 (which is based on openSUSE 11.1). I'm planning to re-install the openSUSE machine with 11.2 soon so hopefully if I rebuild with that it'll work.
 
Old 09-30-2010, 08:56 AM   #4
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Original Poster
Rep: Reputation: 198Reputation: 198
I know this thread is old but I just encountered the same problem again of conky displaying "Conky: Unable to load image"

for no apparent reason and this thread come up in the Google search results whilst I was looking for an answer. Didn't find the answer via Google but did manage to work it out for myself: Install the package imlib2-loaders.

I figured this out by running

Code:
$ strace -o /tmp/conkystrace conky
then searching /tmp/conkystrace for the error message and reading backwards from there.
 
Old 04-16-2013, 05:03 AM   #5
georgios.stathis
LQ Newbie
 
Registered: Apr 2013
Posts: 1

Rep: Reputation: Disabled
Thumbs up

Installing the imlib2-loaders fixed the problem for me. It's available from within the YAST software installer. It looks that this library was missing and now the image files can be loaded.
Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why so complicated? Replace DVD/CD install images with USB images browny_amiga Linux - General 4 09-21-2009 02:08 PM
Span debian CD images into DVD images Christopher2222 General 3 09-01-2008 11:25 AM
C++/SDL: Images moving too slowly. Images loaded once, etc. Why? RHLinuxGUY Programming 2 05-26-2007 05:11 PM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM
conky help ahh_dee Linux - Software 2 10-28-2005 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration