PC Review


Reply
Thread Tools Rate Thread

batch convert all PNG files on disk to correct PNG thumbnail bug

 
 
spoon2001
Guest
Posts: n/a
 
      5th Oct 2005
I want to load and resave all PNG files on my disk to the same location and
file name. Can anybody advise me how to accomplish this using freeware?

Reason: many of my PNG files were created using an earlier version of
Irfanview, and there was some sort of bug causing thumbnails and viewers to
display the PNG images incorrectly - it looks like a scrambled TV signal.
The problem is fixed if the PNG files are loaded and resaved using a newer
version of Irfanview.

Just tried to accomplish this using the batch convert functions of Irfanview
and Xnview. Both programs choked - "not responding".

Have downloaded ImageMagick, also have Nconvert utility that comes with
Xnview ... but the syntax is very detailed and complex.


 
Reply With Quote
 
 
 
 
nobody
Guest
Posts: n/a
 
      5th Oct 2005

"spoon2001" <(E-Mail Removed)> wrote in message
news:Y6G0f.8966$(E-Mail Removed)...
> I want to load and resave all PNG files on my disk to the same

location and
> file name. Can anybody advise me how to accomplish this using

freeware?
>
> Reason: many of my PNG files were created using an earlier

version of
> Irfanview, and there was some sort of bug causing thumbnails

and viewers to
> display the PNG images incorrectly - it looks like a scrambled

TV signal.
> The problem is fixed if the PNG files are loaded and resaved

using a newer
> version of Irfanview.
>
> Just tried to accomplish this using the batch convert functions

of Irfanview
> and Xnview. Both programs choked - "not responding".


Try with Irfanview again but only load a "reasonable" amount of
files at a time. This should work although it will take a little
longer.



 
Reply With Quote
 
spoon2001
Guest
Posts: n/a
 
      5th Oct 2005
nobody wrote:
> "spoon2001" <(E-Mail Removed)> wrote in message
> news:Y6G0f.8966$(E-Mail Removed)...
>> I want to load and resave all PNG files on my disk to the same
>> location and file name. Can anybody advise me how to accomplish
>> this using freeware?
>>
>> Reason: many of my PNG files were created using an earlier version of
>> Irfanview, and there was some sort of bug causing thumbnails and
>> viewers to display the PNG images incorrectly - it looks like a
>> scrambled TV signal. The problem is fixed if the PNG files are
>> loaded and resaved using a newer version of Irfanview.
>>
>> Just tried to accomplish this using the batch convert functions of
>> Irfanview and Xnview. Both programs choked - "not responding".

>
> Try with Irfanview again but only load a "reasonable" amount of
> files at a time. This should work although it will take a little
> longer.


Nope, that doesn't do the job ... even though Irfanview will recurse the
directory tree for input files - e.g.

c:\data\pics\
c:\data\pics\level1
c:\data\pics\level1\level2

.... it won't put output files in the same locations as the input files ...
it wants to put all of the output files into a single directory ... e.g.

c:\data\pics

That spells disaster!

Luckily I was watching and clicked the STOP button before too much damage
was done.

Arrgh.

I used to have a little DOS utility that would recurse the directory tree
and run the same command-line on each directory in the tree. That would
work here, I think, together with an Irfanview /convert command-line option.


 
Reply With Quote
 
B. R. 'BeAr' Ederson
Guest
Posts: n/a
 
      5th Oct 2005
On Wed, 05 Oct 2005 16:25:04 GMT, spoon2001 wrote:

>> Try with Irfanview again but only load a "reasonable" amount of
>> files at a time. This should work although it will take a little
>> longer.

>
> Nope, that doesn't do the job ... even though Irfanview will recurse the
> directory tree for input files - e.g.

[...]
> ... it won't put output files in the same locations as the input files ...
> it wants to put all of the output files into a single directory ... e.g.


You could run:

i_view32.exe sample.png /convert=sample.png

I have no defect *.png files to test. But if I try it on *.jpg the file
size changes. (Using my default setting of compression quality, if I'm
not mistaken.) So it might rewrite *.png files, too.

If the above succeeds, you can run a command like this (if you're on
Win2k or WinXP):

cmd /c for /R D:\Picts %i in (*.png) do C:\IView\i_view32 %i /convert=%i

The above assumes IrfanView is inside the C:\IView folder and the *.png
files can be found within the D:\Picts folder (and its subfolders). It
should rewrite any *.png file found. Don't use too deeply nested folders.
Else you'll encounter problems with the command line buffer size.

> I used to have a little DOS utility that would recurse the directory tree
> and run the same command-line on each directory in the tree. That would
> work here, I think, together with an Irfanview /convert command-line option.


Maybe <Locate> by Charles Dye:

http://www.highfiber.com/~raster/freeware.htm

BeAr
--
===========================================================================
= What do you mean with: "Perfection is always an illusion"? =
===============================================================--(Oops!)===
 
Reply With Quote
 
spoon2001
Guest
Posts: n/a
 
      6th Oct 2005
B. R. 'BeAr' Ederson wrote:
> You could run:
>
> i_view32.exe sample.png /convert=sample.png
>
> I have no defect *.png files to test. But if I try it on *.jpg the
> file
> size changes. (Using my default setting of compression quality, if I'm
> not mistaken.) So it might rewrite *.png files, too.
>
> If the above succeeds, you can run a command like this (if you're on
> Win2k or WinXP):
>
> cmd /c for /R D:\Picts %i in (*.png) do C:\IView\i_view32 %i
> /convert=%i
>
> The above assumes IrfanView is inside the C:\IView folder and the
> *.png files can be found within the D:\Picts folder (and its
> subfolders). It should rewrite any *.png file found. Don't use too
> deeply nested folders. Else you'll encounter problems with the
> command line buffer size.
>
>> I used to have a little DOS utility that would recurse the directory
>> tree and run the same command-line on each directory in the tree.
>> That would work here, I think, together with an Irfanview /convert
>> command-line option.

>
> Maybe <Locate> by Charles Dye:
>
> http://www.highfiber.com/~raster/freeware.htm
>
> BeAr


Hi BeAr,

Worked like a charm. Thanks!

I never knew about the /R switch on the FOR command. We didn't have that in
the DOS version of FOR. Somewhere online there ought to be a complete
reference for all the XP internal/external commands, listing all the
switches, etc. with examples. I haven't found it yet.


 
Reply With Quote
 
B. R. 'BeAr' Ederson
Guest
Posts: n/a
 
      6th Oct 2005
On Thu, 06 Oct 2005 01:27:32 GMT, spoon2001 wrote:

> Worked like a charm. Thanks!


Fine. ;-)

> Somewhere online there ought to be a complete reference for all the XP
> internal/external commands, listing all the switches, etc. with
> examples. I haven't found it yet.


Try this:

http://www.microsoft.com/resources/d...us/ntcmds.mspx
www.ss64.com/nt

And of course a 'help <cmd>' (e.g. help for) on the CMD command prompt
reveals all switches, too.

BeAr
--
===========================================================================
= What do you mean with: "Perfection is always an illusion"? =
===============================================================--(Oops!)===
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I batch convert 97-2003 .xls files to 2007 .xlsx files =?Utf-8?B?RGF2ZSBOdXR0YWxs?= Microsoft Excel Misc 4 3rd Aug 2009 11:38 PM
How can I convert a batch of .wpd files to Word 2007 files? SPW Microsoft Word New Users 3 15th Jul 2008 05:10 AM
Re: any freeware to convert BMP files to JPG or GIF in batch??? oscar polanco Freeware 13 24th Dec 2003 10:32 PM
Re: any freeware to convert BMP files to JPG or GIF in batch??? sethra Freeware 0 4th Aug 2003 01:00 AM
Re: any freeware to convert BMP files to JPG or GIF in batch??? Antoine Freeware 0 3rd Aug 2003 04:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:28 AM.