1. Gallery Maker
- Posted by Jason Gade <jaygade at yahoo.com> Apr 23, 2005
- 453 views
I've been testing Tone Škoda's GalleryMaker before using it in anger. After adding ctype.e... ImageMagick for me is installed under "Program Files" (with a space). To make this work, change line 156 to:
if system_exec ("\"" & Imagemagick_Path & "\\convert.exe -blur 2x2 -flop -raise 2x2 -sample \"" & sprintf ("%d", Thumb_Max_Width) & "x" & sprintf ("%d", Thumb_Max_Height) & " " & "\"" & Directory & "\\" & fname & " \"" & Directory & "\\" & thumb_fname, 2) then end if
Which adds quotes around the executable name for imagemagick. That seems to work. One of the projects that I would like to do (but probably won't) would be to do a GUI version of this program. BTW, where did you get als_dj.exe?? ===================================== Too many freaks, not enough circuses. j.
2. Re: Gallery Maker
- Posted by don cole <doncole at pacbell.net> Apr 23, 2005
- 423 views
> > BTW, where did you get als_dj.exe?? > > > ===================================== > Too many freaks, not enough circuses. > > j. > The Al Getz file on http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&gen=on&keywords=dj
3. Re: Gallery Maker
- Posted by Al Getz <Xaxo at aol.com> Apr 24, 2005
- 459 views
Jason Gade wrote: > > I've been testing Tone Škoda's GalleryMaker before using it in anger. > > After adding ctype.e... > > ImageMagick for me is installed under "Program Files" (with a space). To make > this > work, change line 156 to: > > }}} <eucode> > if system_exec ("\"" & Imagemagick_Path & "\\convert.exe -blur 2x2 -flop > -raise 2x2 -sample \"" > & sprintf ("%d", Thumb_Max_Width) & "x" & sprintf ("%d", > Thumb_Max_Height) > & " " & "\"" & Directory & "\\" & fname & " \"" & Directory & "\\" & > thumb_fname, 2) then end if > </eucode> {{{ > > Which adds quotes around the executable name for imagemagick. > > That seems to work. > > One of the projects that I would like to do (but probably won't) would be to > do a GUI > version of this program. > > BTW, where did you get als_dj.exe?? > > > ===================================== > Too many freaks, not enough circuses. > > j. > 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"
4. Re: Gallery Maker
- Posted by Jason Gade <jaygade at gmail.com> Apr 24, 2005
- 448 views
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.
5. Re: Gallery Maker
- Posted by Jason Gade <jaygade at gmail.com> Apr 24, 2005
- 459 views
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" > > > > My other message in this thread got kind of long and off the central topic of als_dj.exe Anyway, I'll look into your GDIPlus lib. I had been thinking about looking into Imagemagick some more and seeing if it has a .dll or .so that could be called from a main program. Calling from system() or system_exec() seems to work pretty good, though. Do you have detailed info on als_dj.exe? What language is it written in? Is there any other documentation than the command-line paramaters? Thanks! -- ============================== Too many freaks, not enough circuses. j.
6. Re: Gallery Maker
- Posted by Al Getz <Xaxo at aol.com> Apr 25, 2005
- 428 views
Jason Gade wrote: > > My other message in this thread got kind of long and off the central > topic of als_dj.exe > > Anyway, I'll look into your GDIPlus lib. I had been thinking about > looking into Imagemagick some more and seeing if it has a .dll or .so > that could be called from a main program. Calling from system() or > system_exec() seems to work pretty good, though. > > Do you have detailed info on als_dj.exe? What language is it written > in? Is there any other documentation than the command-line paramaters? > > Thanks! > > -- > ============================== > Too many freaks, not enough circuses. > j. > > Hi again Jason, As i was saying before, als_dj.exe is my own jpeg decompressor, while GdiPlus is a .dll written by Microsoft. als_dj.exe is written in the C language and compiled using a Microsoft compiler. GdiPlus is available as a free download from Microsoft for systems that dont already have it (Win95+ required). Now that you mention it, i've never written a help file for als_dj.exe but you can get plenty of ideas by opening a command box and navigate to the directory where als_dj.exe is located and type at the prompt: als_dj.exe or als_dj.exe/? to see plenty of command line options. I dont think this will be much help, but if you're interested in finding out more about the jpeg decompression process you can download my "JPG Reader" which shows the basic decompression scheme. Every bit of the process is done in Euphoria, so you can single step through every part of it. Do a search or download here: http://www.rapideuphoria.com/jpgdecom.zip I dont think that's what you want, but just in case you're interested in the file decompression itself that's the best example i know of on the web :) especially if you want to design your own decompressor. Note that scaling the picture size isnt as easy with als_dj as it is with GdiPlus, but als_dj will decompress some files that are corrupt to some degree whereas GdiPlus will return an error. GdiPlus still being the more versatile however. Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"
7. Re: Gallery Maker
- Posted by Jason Gade <jaygade at yahoo.com> Apr 25, 2005
- 453 views
Al Getz wrote: > Hi again Jason, > > As i was saying before, als_dj.exe is my own jpeg decompressor, while > GdiPlus is a .dll written by Microsoft. als_dj.exe is written in the > C language and compiled using a Microsoft compiler. GdiPlus is > available as a free download from Microsoft for systems that dont > already have it (Win95+ required). > Now that you mention it, i've never written a help file for als_dj.exe > but you can get plenty of ideas by opening a command box and navigate > to the directory where als_dj.exe is located and type at the prompt: > als_dj.exe > or > als_dj.exe/? > to see plenty of command line options. > > I dont think this will be much help, but if you're interested in finding > out more about the jpeg decompression process you can download my > "JPG Reader" which shows the basic decompression scheme. Every bit of > the process is done in Euphoria, so you can single step through every > part of it. Do a search or download here: > <a > href="http://www.rapideuphoria.com/jpgdecom.zip">http://www.rapideuphoria.com/jpgdecom.zip</a> > I dont think that's what you want, but just in case you're interested > in the file decompression itself that's the best example i know of > on the web :) especially if you want to design your own decompressor. > > Note that scaling the picture size isnt as easy with als_dj as it > is with GdiPlus, but als_dj will decompress some files that are > corrupt to some degree whereas GdiPlus will return an error. > GdiPlus still being the more versatile however. > > > Take care, > Al > > And, good luck with your Euphoria programming! > > My bumper sticker: "I brake for LED's" > Thanks, Al. I was looking at your programs in the archive and I saw the jpeg decompressor although I haven't checked it out yet. I will do so. I'm interested in compression techniques but without the advanced math background I sometimes have a difficult time understanding it. Thanks again! BTW, what does your tagline "I brake for LED's" mean? Are you a hardware guy? I'm an electronics tech by profession myself. ===================================== Too many freaks, not enough circuses. j.
8. Re: Gallery Maker
- Posted by don cole <doncole at pacbell.net> Apr 26, 2005
- 431 views
Jason Gade wrote: > > Al Getz wrote: > > Hi again Jason, > > > > As i was saying before, als_dj.exe is my own jpeg decompressor, while > > GdiPlus is a .dll written by Microsoft. als_dj.exe is written in the > > C language and compiled using a Microsoft compiler. GdiPlus is > > available as a free download from Microsoft for systems that dont > > already have it (Win95+ required). > > Now that you mention it, i've never written a help file for als_dj.exe > > but you can get plenty of ideas by opening a command box and navigate > > to the directory where als_dj.exe is located and type at the prompt: > > als_dj.exe > > or > > als_dj.exe/? > > to see plenty of command line options. > > > > I dont think this will be much help, but if you're interested in finding > > out more about the jpeg decompression process you can download my > > "JPG Reader" which shows the basic decompression scheme. Every bit of > > the process is done in Euphoria, so you can single step through every > > part of it. Do a search or download here: > > <a > > href="http://www.rapideuphoria.com/jpgdecom.zip">http://www.rapideuphoria.com/jpgdecom.zip</a> > > I dont think that's what you want, but just in case you're interested > > in the file decompression itself that's the best example i know of > > on the web :) especially if you want to design your own decompressor. > > > > Note that scaling the picture size isnt as easy with als_dj as it > > is with GdiPlus, but als_dj will decompress some files that are > > corrupt to some degree whereas GdiPlus will return an error. > > GdiPlus still being the more versatile however. > > > > > > Take care, > > Al > > > > And, good luck with your Euphoria programming! > > > > My bumper sticker: "I brake for LED's" > > > > Thanks, Al. I was looking at your programs in the archive and I saw the jpeg > decompressor > although I haven't checked it out yet. I will do so. > > I'm interested in compression techniques but without the advanced math > background I > sometimes have a difficult time understanding it. > > Thanks again! > > BTW, what does your tagline "I brake for LED's" mean? Are you a hardware guy? > I'm > an electronics tech by profession myself. > > ===================================== > Too many freaks, not enough circuses. > > j. > I don't want to speak for Al but I think he means: That the day is comming when you will put you foot on the brake because you see a LED up ahead rather than an incandescent light bulb of the type that most auto manufactures are installing today. I also am an elecronics tech by trade. Don Cole NOB HILL VIDEO SF
9. Re: Gallery Maker
- Posted by Al Getz <Xaxo at aol.com> Apr 26, 2005
- 451 views
Jason Gade wrote: > > > Thanks, Al. I was looking at your programs in the archive and I saw the jpeg > decompressor > although I haven't checked it out yet. I will do so. > > I'm interested in compression techniques but without the advanced math > background I > sometimes have a difficult time understanding it. > > Thanks again! > > BTW, what does your tagline "I brake for LED's" mean? Are you a hardware guy? > I'm > an electronics tech by profession myself. > > ===================================== > Too many freaks, not enough circuses. > > j. > Hi again Jason, The 'advanced math' all eventually boils down to a bunch of multiplications and additions :) The only thing advanced might be the 'Inverse Discreet Cosine Transform' which is my own version i developed from an Inverse Fourier Transform, but it still ends up being a bunch of multiplies and additions within a loop or two in the program. "I brake for LED's" is a sort of joke like a bumper sticker that some people have on their cars that says "i brake for animals" or something like that, which might indicate that i like LED's. Since the creation of the white LED i've found these devices very useful for various lighting applications so i've sort of grown attached to them. Yes, i've worked with lots of hardware (as well as software) and even took part in the design of an original CPU that took up a whole pc card back when CPU's chips were first coming into the picture (pre 1980). Talking about hardware and electronics/electrical stuff, i've also got a 'functional' calculator in the archives that comes with some EE formulas you might be interested in (Ohm's Law, magnetic core formulas, etc). It's called "InPlace Scientific Calculator and Server" because you can use it as a calculator OR a server to your own program (and it even has an appointment calendar built in ). You can easily add your own formulas too and save everything to a file. Im mentioning this because since you work with electronics many of the formulas would be useful to you. Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"
10. Re: Gallery Maker
- Posted by Al Getz <Xaxo at aol.com> Apr 26, 2005
- 453 views
don cole wrote: > > Jason Gade wrote: > > > > Al Getz wrote: > > > Hi again Jason, > > > > > > As i was saying before, als_dj.exe is my own jpeg decompressor, while > > > GdiPlus is a .dll written by Microsoft. als_dj.exe is written in the > > > C language and compiled using a Microsoft compiler. GdiPlus is > > > available as a free download from Microsoft for systems that dont > > > already have it (Win95+ required). > > > Now that you mention it, i've never written a help file for als_dj.exe > > > but you can get plenty of ideas by opening a command box and navigate > > > to the directory where als_dj.exe is located and type at the prompt: > > > als_dj.exe > > > or > > > als_dj.exe/? > > > to see plenty of command line options. > > > > > > I dont think this will be much help, but if you're interested in finding > > > out more about the jpeg decompression process you can download my > > > "JPG Reader" which shows the basic decompression scheme. Every bit of > > > the process is done in Euphoria, so you can single step through every > > > part of it. Do a search or download here: > > > <a > > > href="http://www.rapideuphoria.com/jpgdecom.zip">http://www.rapideuphoria.com/jpgdecom.zip</a> > > > I dont think that's what you want, but just in case you're interested > > > in the file decompression itself that's the best example i know of > > > on the web :) especially if you want to design your own decompressor. > > > > > > Note that scaling the picture size isnt as easy with als_dj as it > > > is with GdiPlus, but als_dj will decompress some files that are > > > corrupt to some degree whereas GdiPlus will return an error. > > > GdiPlus still being the more versatile however. > > > > > > > > > Take care, > > > Al > > > > > > And, good luck with your Euphoria programming! > > > > > > My bumper sticker: "I brake for LED's" > > > > > > > Thanks, Al. I was looking at your programs in the archive and I saw the > > jpeg decompressor > > although I haven't checked it out yet. I will do so. > > > > I'm interested in compression techniques but without the advanced math > > background I > > sometimes have a difficult time understanding it. > > > > Thanks again! > > > > BTW, what does your tagline "I brake for LED's" mean? Are you a hardware > > guy? I'm > > an electronics tech by profession myself. > > > > ===================================== > > Too many freaks, not enough circuses. > > > > j. > > > > I don't want to speak for Al but I think he means: > > That the day is comming when you will put you foot on the brake because > you see a LED up ahead rather than an incandescent light bulb > of the type that most auto manufactures are installing today. > > I also am an elecronics tech by trade. > > Don Cole > NOB HILL VIDEO > SF > Hi again Don, Oh i didnt know you were involved with electronics too. Maybe you'd be interested in the calculator i was talking about... It comes with various EE formulas and im always going to be adding more and more, but you can add your own too. Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"