LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-28-2005, 11:18 AM   #1
jalldridge
Member
 
Registered: Mar 2005
Location: South East England
Distribution: Mandrake 10.1 Discovery
Posts: 34

Rep: Reputation: 15
Thumbnailer required


Hi guys

Fairly new to linux and am trying to find an image thumbnailer that will also generate the applicable html code for me :-) Could use a windows app but want to try and ditch that OS if poss.

Any ideas?

Cheers
 
Old 04-28-2005, 11:42 AM   #2
azucaro
Member
 
Registered: Jan 2005
Location: Washington, D.C.
Distribution: Arch (Custom), CentOS
Posts: 239

Rep: Reputation: 30
For creating thumbnails like at a photography website?

Try 'kallery' for KDE.
 
Old 04-28-2005, 11:46 AM   #3
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
what kind of html do you need generated? Its pretty easy to write a simple shellscript that will do that using for eg. convert from Imagemagick. Heres a quick example:

Code:
#!/bin/bash
if [ -z $1 ]; then
echo "Usage: $0 WidthxHeight"
echo "example: $0 20x30"
exit 1
fi
echo '<html><head></head><body>' > thumbs-html.html
for img in $(ls *.jpg)
do
  echo "converting $img to $1 thumb-$img"
  convert -sample $1 $img thumb-$img
  echo "<img src='thumb-$img' />" >> thumbs-html.html
done
  echo '</body></html>' >> thumbs-html.html
Save that to for eg. thumbinize.sh and chmod it +x Then just cd to the directory where you have your images, and run the script.. If you need image name anti-caps scripts or recursive image lookup into a single dir, ive got example scripts or those also.. (;

Last edited by Artanicus; 04-28-2005 at 11:48 AM.
 
Old 04-28-2005, 11:59 AM   #4
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Rep: Reputation: 30
You could use the thumbnailing function in my phpFinder app

I haven't integrated the img.php file too closely with anything else yet, so you should be able to dig that functionality out fairly easily.

It's (obviously) in PHP though, so I don't know how useful it is to you.


Features include:
Max width / max height
Caching of all generated thumbnails (in native .gd2 format)
At the moment it automatically outputs the image in the format it came in, but I'm thinking of just spitting everything out as PNG.

Last edited by Napalm Llama; 04-28-2005 at 01:39 PM.
 
Old 04-28-2005, 12:31 PM   #5
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
If you use KDE and have ImageMagic installed you can use Konqueror's Gallery creator.

Just open Konqueror, navigate to the folder where your images are, click

Tools >> Create Image Gallery

It will create thumbnails for all your images create the html code and display the page all in one step. I used it to create the DT image gallery in my signature. Fast and easy.

If you don't have the option in Konqueror, use urpmi or rpmdrake to install ImageMagic.

KC
 
Old 04-28-2005, 01:17 PM   #6
jalldridge
Member
 
Registered: Mar 2005
Location: South East England
Distribution: Mandrake 10.1 Discovery
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks guys. I'll try some of your suggestions (the script will be a good one as I've not touched this stuff yet in linux...)
 
Old 04-28-2005, 02:45 PM   #7
jalldridge
Member
 
Registered: Mar 2005
Location: South East England
Distribution: Mandrake 10.1 Discovery
Posts: 34

Original Poster
Rep: Reputation: 15
Hi guys got an issue with imageMagick that Iwas hoping you can help me out with.

I've installed this and get the following at a console

[root@localhost oz]# whereis ImageMagick
ImageMagick: /usr/share/man/man1/ImageMagick.1.bz2

However I cant seem to find out how to run this, and cant go Tools >> Create Image Gallery in Konqueror, as there is no entry.

Any ideas what I need to do to get access to this program?

Thanks
 
Old 04-28-2005, 02:48 PM   #8
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Imagemagick is a set of tools, and it doesnt have a central binary. convert is one of the most useful binaries included. The manual will most likely tell you more on them. just opne it with: man imagemagick
 
Old 04-28-2005, 03:20 PM   #9
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
Quote:
Originally posted by jalldridge
Hi guys got an issue with imageMagick that Iwas hoping you can help me out with.

I've installed this and get the following at a console

[root@localhost oz]# whereis ImageMagick
ImageMagick: /usr/share/man/man1/ImageMagick.1.bz2

However I cant seem to find out how to run this, and cant go Tools >> Create Image Gallery in Konqueror, as there is no entry.

Any ideas what I need to do to get access to this program?

Thanks
Open RPMDrake (software package installation). Do a search for "kdeaddons" It should find this file:

kdeaddons Version: 3.2.3-17mdk

Click to install package and any dependencies it wants to install with it. You will need one or more of your MDK disks.

This should install the Kongueror plug-in you need to use ImageMagick.

Good Luck

KC
 
Old 04-29-2005, 04:55 AM   #10
jalldridge
Member
 
Registered: Mar 2005
Location: South East England
Distribution: Mandrake 10.1 Discovery
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks kencaz. I'll try and get some time over the weekend to give it a go.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using KDE's thumbnailer in a script kidders Linux - Software 3 07-17-2005 05:28 AM
Help Required kdjambotkar Linux - Hardware 6 12-09-2004 02:46 PM
QT help required sibtay Programming 2 11-10-2004 11:18 AM
X is required Wolf-67 Linux - Newbie 6 10-02-2004 09:24 PM
Some help required. Dsavage Linux - Newbie 1 07-23-2004 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:20 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