RE: Feature Request - Thumbnails

sixonetonoffun <[email protected]>
Newsgroups gmane.comp.web.oscommerce.features
Message-ID <7ce8da9b5e4aa34442dccf652502eeac@osCommerce-Forums>
This message was sent from: Features
http://forums.oscommerce.com/viewtopic.php?p=198664#198664
----------------------------------------------------------------

I know this topics a little old but...

How many images are you processing? I use ImageMagick locally with a batch file (From ImageMagick users list) to do batch jobs of all sorts. I have about 6 in the right click sendto menu. Hightlight the files to process right click sendto ~> thumnail.bat or copyright.bat ect....

My host has ImageMagick and NetPBM for me now but I still use these scripts when processing from cd's the digital camera ect.. 

The only limitation is windows when running larger files I can only run 25-30 on a 320mb ram machine.

These are very simple basic DOS bat files that use basic ImageMagick functions.

Here is the original bat I based the ones I use on from:
Fabian Rodriguez - Montreal QC Canada
http://www.FabianRodriguez.com

Change path and set classpath to your ImageMagick path and experiment.
(Default Windows install is now in the C:\Program Files)
[code]
@PATH=C:\bin
@SET CLASSPATH=C:\BIN

@IF exist "%~d1%~p1slim" GOTO PROCESS_IMAGES
mkdir "%~d1%~p1slim"

:PROCESS_IMAGES
:LOOP
@echo Processing %~nx1:

@IF EXIST "%~d1%~p1slim\%~n1%~x1" GOTO COMPRESSION_EXISTS

:COMPRESS_AND_RESIZE
@echo * Checking compression and size...
@c:\bin\convert -geometry 1024x1024 -quality 50 "%~f1"
"%~d1%~p1slim\%~n1%~x1"
@echo Done.
@GOTO COMPRESSION_DONE

:COMPRESSION_EXISTS
@echo Compressed version already exists! Skipped.

:COMPRESSION_DONE

@IF EXIST "%~d1%~p1slim\%~n1_th%~x1" GOTO THUMBNAIL_EXISTS
@echo * Checking Thumbnail ...
@c:\bin\convert -geometry 120x120 "%~f1" "%~d1%~p1slim\%~n1_th%~x1"
@echo Done.
@GOTO THUMBNAIL_DONE

:THUMBNAIL_EXISTS
@echo Thumbnail already exists! Skipped.

:THUMBNAIL_DONE

:NEXT
@echo.
@shift
@if not (%1)==() goto LOOP
[/code]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.