LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Thumbnailer required (https://www.linuxquestions.org/questions/linux-software-2/thumbnailer-required-318102/)

jalldridge 04-28-2005 11:18 AM

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

azucaro 04-28-2005 11:42 AM

For creating thumbnails like at a photography website?

Try 'kallery' for KDE.

Artanicus 04-28-2005 11:46 AM

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.. (;

Napalm Llama 04-28-2005 11:59 AM

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.

kencaz 04-28-2005 12:31 PM

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

jalldridge 04-28-2005 01:17 PM

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...)

jalldridge 04-28-2005 02:45 PM

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

Artanicus 04-28-2005 02:48 PM

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

kencaz 04-28-2005 03:20 PM

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

jalldridge 04-29-2005 04:55 AM

Thanks kencaz. I'll try and get some time over the weekend to give it a go.


All times are GMT -5. The time now is 08:50 AM.