Re: Gallery Maker

new topic     » goto parent     » topic index » view thread      » older message » newer message

Al Getz wrote:

>Hi there Jason,
>
>als_dj.exe is my jpeg decompressor executable.  It opens many files
>that cant be opened with other jpg decompressors, even if there's 
>various types of errors in the jpg file itself.
>
>If you're looking to do thumbnails and/or you'd like to do other
>picture formats (such as gif/ico/tif/bmp/etc.) a perhaps more
>versatile library is my recently posted *GdiPlus* lib that 
>contains over 600 built in functions for opening/saving and
>displaying pictures and mucho other graphics too. There's
>an example of a picture viewer included as a demo with that package...
>check the archives.  There are thumbnail functions also but i havent
>tried them yet so you could do that if you like.
>
>
>Take care,
>Al
>
>And, good luck with your Euphoria programming!
>
>My bumper sticker: "I brake for LED's"
>
>
>
>
Thanks, Al.  I'll look into it.

I ended up using Imagemagick for my needs.  I ran into a funny 
situation, though.

I wanted to shrink the photos (106 of them) down from 1152x864 to 
800x600 before running them through GalleryMaker.  I'm using Windows XP, 
but I have Unix command-line tools installed (not Cygwin).  I don't know 
much about Windows/DOS batch files but I do know a little shell 
scripting.  But no matter I couldn't get Windows shell, Bourne Shell, or 
zsh to properly glob the pattern '*.jpg'.  It would never expand the '*' 
and Imagemagick wouldn't do it on the command line either.

I took about 20 mins to write a 10 line Euphoria program to do what I 
needed (I know, I'm slow...).  I used stuff I hadn't used before such as 
walk_dir(), routine_id(), wildcard_file(), and system().

The only problem I ran into was the difference between system() and 
system_exec().  I tried system_exec() first, with the command line
-- note:  I was actually using a variable for the command line string
void = system_exec("convert.exe AAAA0010.jpg -resize 800 Image0010.jpg", 2)


With system_exec() convert.exe would come back and tell me that "- 
-resize is not a recognized option" or some such.  It worked just fine 
with system() (and removing void of course).

Is that because system() starts a new command shell and system_exec() 
doesn't?  It still doesn't make sense.

I guess the point is that Euphoria makes a great scripting language!  
That is, scripting in the sense of doing one-off tasks or simple 
administrative/utility type programs.


-- 
==============================
Too many freaks, not enough circuses.
j.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu