Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image resizing utility?
#1
i'm Has anyone done batch resizing of images in QB64? 
I'm looking to make a simple drag and drop exe that you drag one or more pictures onto (or maybe send it a command line parameter with a path, or a path + a pattern) and it will auto-convert all the images in the folder to some predetermined target resolution at a high quality (or maybe be able to choose the quality vs processing time?) and write the converted images to target folder (or the same folder but with some prefix or change to the file name so you can easily separate them). It would support JPEG / PNG maybe also BMP / GIF, maybe specify the output format + quality? 
Bonus if the created file retains the modified date of the original. 

If anyone has done or seen this kind of thing, I would be interested in any samples or advice...!

UPDATE: I think ImageMagick is what I was thinking of. 
It would still be interesting to do this in QB64, but ImageMagick with a batch file should work for now...

https://www.imagemagick.org/script/download.php#windows

imagemagick - Lightweight command-line image resizer? - Stack Overflow

https://stackoverflow.com/questions/3455...ge-resizer
Reply


Messages In This Thread
Image resizing utility? - by madscijr - 07-17-2022, 08:04 PM
RE: Image resizing utility? - by SMcNeill - 07-19-2022, 05:49 PM
RE: Image resizing utility? - by madscijr - 07-19-2022, 07:54 PM
RE: Image resizing utility? - by mnrvovrfc - 07-25-2022, 10:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Whats the difference between a Utility and a Program bplus 20 1,580 01-18-2026, 06:51 PM
Last Post: Pete
  graceful way to test for a valid image handle such as before doing _FreeImage? madscijr 7 1,023 11-11-2025, 03:50 PM
Last Post: madscijr
  A strange experience with forum posting an image TempodiBasic 2 535 06-17-2025, 06:01 AM
Last Post: TempodiBasic
  QB64PE programming challenge? auto-convert image to photoreal etch-a-sketch drawing madscijr 9 1,857 02-14-2025, 05:49 PM
Last Post: madscijr
  When to free an image? James D Jarvis 5 1,149 04-16-2023, 08:55 PM
Last Post: OldMoses

Forum Jump:


Users browsing this thread: 1 Guest(s)