It may be time to revisit the capabilities of ImageMagick since the
original perl script was written. At that time there were licensing
issues with GIF so they could not be included in IM. A perl script may
have been necessary at that time. IM can however, size, crop, change
format in a half line command instead of an eloborate perl placement.


 ImageMagick®,  is  a  software  suite to create, edit, and compose
bitmap images. It can read, convert and write images in a variety of
formats (about 100)
       including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and
DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear
and  transform  images,
       adjust image colors, apply various special effects, or draw
text, lines, polygons, ellipses and B\['e]zier curves.



stream

              is a lightweight tool to stream one or more pixel
components of the image or portion of the image to your choice of
storage formats. It  writes  the
              pixel  components  as  they are read from the input
image a row at a time making stream desirable when working with large
images or when you require
              raw pixel components.


# !/bin/sh -

for i in *.jpg; do
j=`basename $i | sed -e 's/\.jpg//'`
mogrify -resize 800x600 -format png *.jpg
done

Happy gif-ng!

gkey

On Thu, Jul 19, 2012 at 1:00 PM,  <tclug-list-request at mn-linux.org> wrote:
> Send tclug-list mailing list submissions to
>         tclug-list at mn-linux.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://mailman.mn-linux.org/mailman/listinfo/tclug-list
> or, via email, send a message with subject or body 'help' to
>         tclug-list-request at mn-linux.org
>
> You can reach the person managing the list at
>         tclug-list-owner at mn-linux.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of tclug-list digest..."
>
>
> Today's Topics:
>
>    1. Re: Image::Magick question (Jake Vath)
>    2. Re: Image::Magick question (Josh More)
>    3. Re: Image::Magick question (Eric F Crist)
>    4. Re: Image::Magick question (Michael Moore)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 18 Jul 2012 17:06:12 -0500
> From: Jake Vath <jake.vath at gmail.com>
> To: TCLUG Mailing List <tclug-list at mn-linux.org>
> Subject: Re: [tclug-list] Image::Magick question
> Message-ID:
>         <CAMeWMmisj2CRRcEP-sXn9oWJ5=TdwYY3aT3BKgk2JUixCHYgsg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> That's not a bad idea, not a *real* fix, but that would be a clever work
> around... I like it :)
>
> -> Jake
>
> On Wed, Jul 18, 2012 at 5:03 PM, Yaron <tclug at freakzilla.com> wrote:
>
>> You could always create the file with the correct permissions first and
>> then write to it, I think.
>>
>>
>> On Wed, 18 Jul 2012, Smith, Craig A wrote:
>>
>>   Can't you just put a chmod in the script?
>>>>
>>>
>>> That what I did, but the (partially calculated) mpegs cannot be viewed
>>> (with Apache) until the script is done.  Since that can take hours, I'd
>>> hoped to preview initial frames sooner.
>>>
>>> ______________________________**_________________
>>> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
>>> tclug-list at mn-linux.org
>>> http://mailman.mn-linux.org/**mailman/listinfo/tclug-list<http://mailman.mn-linux.org/mailman/listinfo/tclug-list>
>>>
>>>
>>
>> -Yaron
>>
>> --
>>
>> ______________________________**_________________
>> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
>> tclug-list at mn-linux.org
>> http://mailman.mn-linux.org/**mailman/listinfo/tclug-list<http://mailman.mn-linux.org/mailman/listinfo/tclug-list>
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20120718/48da9387/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 18 Jul 2012 17:06:28 -0500
> From: Josh More <jmore at starmind.org>
> To: TCLUG Mailing List <tclug-list at mn-linux.org>
> Subject: Re: [tclug-list] Image::Magick question
> Message-ID:
>         <CAB3GUt-NnqKLCjtqeWeK58S-bDWBJceWnC=ip_q4+KcX7VaL9g at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Did you people read the post?
>
> The permissions aren't the problem, they're a symptom.  This is a
> question about animation quality.
>
> (I'd help, but I don't know the answer.  Sorry Craig.)
>
> -Josh
>
> On Wed, Jul 18, 2012 at 5:04 PM, Jake Vath <jake.vath at gmail.com> wrote:
>> Hey Craig,
>>
>> Under what user are you running the script?
>> Is that the same across all the the systems?
>>
>> -> Jake
>>
>>
>> On Wed, Jul 18, 2012 at 4:59 PM, Smith, Craig A
>> <Craig.A.Smith at honeywell.com> wrote:
>>>
>>> >  Can't you just put a chmod in the script?
>>>
>>> That what I did, but the (partially calculated) mpegs cannot be viewed
>>> (with Apache) until the script is done.  Since that can take hours, I'd
>>> hoped to preview initial frames sooner.
>>>
>>> _______________________________________________
>>> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
>>> tclug-list at mn-linux.org
>>> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>>
>>
>>
>> _______________________________________________
>> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
>> tclug-list at mn-linux.org
>> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>>
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 18 Jul 2012 17:07:50 -0500
> From: Eric F Crist <ecrist at secure-computing.net>
> To: TCLUG Mailing List <tclug-list at mn-linux.org>,       TCLUG Mailing List
>         <tclug-list at mn-linux.org>
> Subject: Re: [tclug-list] Image::Magick question
> Message-ID: <771c6a8a-6b4b-40dd-9b2d-cf4a9d3056c0 at email.android.com>
> Content-Type: text/plain; charset="utf-8"
>
> Touch the file and chmod first, then generate.
> --
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>
> "Smith, Craig A" <Craig.A.Smith at honeywell.com> wrote:
>
>> Can't you just put a chmod in the script?
>
> That what I did, but the (partially calculated) mpegs cannot be viewed (with Apache) until the script is done. Since that can take hours, I'd hoped to preview initial frames sooner.
>
> _____________________________________________
>
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20120718/8be8b8f3/attachment-0001.html>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 18 Jul 2012 17:56:03 -0500
> From: Michael Moore <stuporglue at gmail.com>
> To: TCLUG Mailing List <tclug-list at mn-linux.org>
> Subject: Re: [tclug-list] Image::Magick question
> Message-ID:
>         <CAFE18KVbQd3V7edb7-i2_71tq9tgpWBY86jdvm+4f3=ukKaZtQ at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
>> I?m serving the mpegs from Apache and viewing with a browser plug in (QuickTime).  They now appear ?sticky? and ?jerky.?  Older mpegs, created with the previous system, playback fine so the problem is not with Apache, browser, or plug-in.  Newly created files are also much smaller (1.3M) compared to before (11M) , so I suspect the authors also chose a lower mpeg quality setting.
>
>
> Maybe if you can identify what is different between the files you'll
> have a better idea what settings to be looking for. Ffmpeg can tell
> you the file details if give the file as an input and don't do any
> operations.
>
> eg.
> ffmpeg -i old_smooth_file.mpeg
> ffmpeg -i new_jerky_file.mpeg
>
> I've never used ImageMagick for making videos from still images
> (always used ffmpeg for that...), but this mailing list thread
> suggests that ffmpeg is what's actually making the videos in the
> background. http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=13650
>
> This newer link suggests that you might be able to change the ffmpeg
> defaults (as called by ImageMagick) in you delegates.xml file.
>
>
> Michael Moore
> --
> http://fridleyfarmer.com -- The Fridley Farmer
> http://stuporglue.org -- Web programming, Moore's Ramblings III and
> other Miscellaneous Projects
>
>
> ------------------------------
>
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>
> End of tclug-list Digest, Vol 91, Issue 16
> ******************************************



-- 
---
Gregory Key
https://gm5729.deviantart.com/
Please conserve paper and print this email out ONLY if necessary.

gm5729 -AT- gmail -DOT- com
gm5729 -AT- gmx -DOT- us