[ale] Bulk jpg Thumbnail production from 137000 jp2 files??

Wolf Halton wolf.halton at gmail.com
Wed Feb 20 10:19:53 EST 2013


for i in `ls  *.jp2`
do
    file=`basename $i`
    suffix='jpg'
    convert $i -resize 7%  $file.$suffix
done

# Worked perfectly - Thanks for helping me sort this out.


On Wed, Feb 20, 2013 at 10:08 AM, Wolf Halton <wolf.halton at gmail.com> wrote:

> Pete:
> That looks like it would work.
> I will test in my sample folders.
> I absolutely do not want to handle each file manually. :-)
>
>
> On Wed, Feb 20, 2013 at 9:58 AM, Pete Hardie <pete.hardie at gmail.com>wrote:
>
>> shell script, not necessarily error free:
>>
>> for i in `ls *.jp2'
>> do
>>     file=`basename $i`
>>     suffix='suffix'
>>     convert $i <options> $file.$suffix
>> done
>>
>> man basename for all the fun options - it can get you the path, a part
>> before the '.', a part after the '.', etc
>>
>>
>> Pete Hardie
>> --------
>> Better Living Through Bitmaps
>>
>>
>> On Wed, Feb 20, 2013 at 9:43 AM, Wolf Halton <wolf.halton at gmail.com>wrote:
>>
>>> inside a folder, I can do something like
>>> convert *.jp2 -resize 7% thumb.jpg
>>> that gives me a list:
>>> thumb-0.jpg ... thumb-3.jpg .. thumb-N
>>> but I have to keep the file names the same as the originals.  adding a
>>> suffix to the file name is ok e.g. 0000146.jp2 can have a thumbnail called
>>> 0000146-1.jpg, but otherwise I cannot easily find the associated file and
>>> thumbnail.
>>>
>>>
>>>
>>> On Wed, Feb 20, 2013 at 9:29 AM, Jeff Hubbs <jhubbslist at att.net> wrote:
>>>
>>>> Specifically, "convert."  Script it and stand back.
>>>>
>>>>
>>>> On 2/20/13 9:24 AM, James Sumners wrote:
>>>>
>>>>> https://en.wikipedia.org/wiki/**ImageMagick<https://en.wikipedia.org/wiki/ImageMagick>
>>>>>
>>>>> On Wed, Feb 20, 2013 at 9:07 AM, Wolf Halton <wolf.halton at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> I have been poking around, and gui-graphics apps will do the job, but
>>>>>> I need
>>>>>> a monastery full of dedicated monks to work on it for a couple of
>>>>>> years.  I
>>>>>> had a product on *That other OS*(tm) that could do this, but I am on
>>>>>> Debian
>>>>>> Wheezy and don't want to ship the drives all the way across from this
>>>>>> cubicle to the other, or install samba on the Debian machine to mount
>>>>>> the
>>>>>> drives on the machine with *That other OS*(tm).
>>>>>>
>>>>>> --
>>>>>> Wolf Halton
>>>>>> This Apt Has Super Cow Powers - http://sourcefreedom.com
>>>>>> Open-Source Software in Libraries - http://FOSS4Lib.org
>>>>>> Advancing Libraries Together - http://LYRASIS.org
>>>>>> Apache Open Office Developer wolfhalton at apache.org
>>>>>>
>>>>>> ______________________________**_________________
>>>>>> Ale mailing list
>>>>>> Ale at ale.org
>>>>>> http://mail.ale.org/mailman/**listinfo/ale<http://mail.ale.org/mailman/listinfo/ale>
>>>>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>>>> http://mail.ale.org/mailman/**listinfo<http://mail.ale.org/mailman/listinfo>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>> ______________________________**_________________
>>>> Ale mailing list
>>>> Ale at ale.org
>>>> http://mail.ale.org/mailman/**listinfo/ale<http://mail.ale.org/mailman/listinfo/ale>
>>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>> http://mail.ale.org/mailman/**listinfo<http://mail.ale.org/mailman/listinfo>
>>>>
>>>
>>>
>>>
>>> --
>>> Wolf Halton
>>> This Apt Has Super Cow Powers - http://sourcefreedom.com
>>> Open-Source Software in Libraries - http://FOSS4Lib.org
>>> Advancing Libraries Together - http://LYRASIS.org
>>> Apache Open Office Developer wolfhalton at apache.org
>>>
>>> _______________________________________________
>>> Ale mailing list
>>> Ale at ale.org
>>> http://mail.ale.org/mailman/listinfo/ale
>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>> http://mail.ale.org/mailman/listinfo
>>>
>>>
>>
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>>
>
>
> --
> Wolf Halton
> This Apt Has Super Cow Powers - http://sourcefreedom.com
> Open-Source Software in Libraries - http://FOSS4Lib.org
> Advancing Libraries Together - http://LYRASIS.org
> Apache Open Office Developer wolfhalton at apache.org
>



-- 
Wolf Halton
This Apt Has Super Cow Powers - http://sourcefreedom.com
Open-Source Software in Libraries - http://FOSS4Lib.org
Advancing Libraries Together - http://LYRASIS.org
Apache Open Office Developer wolfhalton at apache.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20130220/c772746e/attachment-0001.html>


More information about the Ale mailing list