123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|681|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> On Topic -> Batch resize files?

Fri, 11 Mar 2016, 07:37
GfK
I've got a bunch of folders/subfolders with (among other stuff) images of 496x496px. I want to resize ONLY the images of this size and resave (overwrite) them in PNG format.

I thought Irfanview might do the job, but that'll resize every image it finds in the subfolders, and this isn't what I want to do. Sort of:



Any ideas?
Fri, 11 Mar 2016, 07:51
Jayenkai
BlitzMax..


I recently did this to rescale all my thumbnails for my game archive.

-=-=-
''Load, Next List!''
Fri, 11 Mar 2016, 07:54
GfK
i thought about doing it like that. But from memory, isn't Blitzmax's pixmap resizey thingy a bit.... you know.... shit?
Fri, 11 Mar 2016, 08:04
Jayenkai
Depends what you're using it for, and how much you're scaling it.


Scaled from this

Mileage may vary!

-=-=-
''Load, Next List!''
Fri, 11 Mar 2016, 08:07
GfK
It's for ebay listings, which insists on mininum 500x500. All my images are 496x496.
Fri, 11 Mar 2016, 08:12
Jayenkai
Alternatively, also BlitzMax


-=-=-
''Load, Next List!''
Fri, 11 Mar 2016, 08:15
Jayenkai
That's only 4 pixels.. Why not, instead, do..



-=-=-
''Load, Next List!''
Sat, 12 Mar 2016, 04:48
GfK
Well, all my images are on a mid-grey background. ResizePixmap made them look quite muddy, which was no good. So instead I just sampled the top-left pixel, created a new 500x500 pixmap and cleared the pixels to that colour, pasted the old pixmap in the middle, and resave the file over the original.

Ran this, and it found over 800 images on the NAS. Don't know/care how many were actually 496x496 but it must have been at least 75%. Took about three minutes to complete but I guess most of that was transferring data to/from the NAS. It'd have taken days to do this manually. Plus, always the chance that I'd accidentally miss a few.