Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Irfanview CLI
Message
From
10/09/2010 16:50:15
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Title:
Irfanview CLI
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Miscellaneous
Thread ID:
01480790
Message ID:
01480790
Views:
176
For a couple of clients I've been using GDIPlusX ( http://vfpx.codeplex.com/wikipage?title=GDIPlusX&ProjectName=vfpx ) for image manipulation, mainly converting .BMP to .JPG. It works well.

I just encountered a video capture application (BlackMagic Media Express 2.x) which saves HD (1920x1080) frame grabs to Targa (.TGA) format - there is no other choice. I did some Googling but it looks like .TGA is not supported in the .Net System.Drawing namespace, so it's unlikely it'd be supported by GDIPlusX.

One option for converting .TGA files is IrfanView ( http://www.irfanview.com/ ). I'd used this program in the past for image viewing, but I was previously unaware that it has a powerful command-line interface (CLI). Its CLI makes file conversion very easy e.g.
* Convert a .TGA to a .JPG, resize from 1920x1080 original to 960x540 (1/4 size),
* resample for better quality, use 50% JPEG quality:

i_view32.exe Source.tga /resize=(960,540) /resample /jpgq=50 /convert=Destination.jpg
IrfanView supports a fairly extensive list of formats for conversion or other basic manipulation tasks.

IrfanView is free for non-commercial use, US$12 for a commercial license. At that price, it may be a time- and cost-effective alternative to using GDIPlusX for the operations IrfanView can handle.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Reply
Map
View

Click here to load this message in the networking platform