jpg resolution

jpg resolution

Postby reinaldocrespo » Fri Jul 06, 2007 6:25 pm

Hi.

I keep jpg images stored a dbf/fpt file pair. It works well. Just to give an example leading to my point; at a given customer site 350k jpg images are kept on an 80GB .fpt file.

I just noticed that at a more recent installation, 26k images occupy an .fpt file of 115GB. I'm suspecting that the resolution at which the jpgs were created was very high.

Using BlobExport() I can extract and re-create any single jpg image file from the .fpt. My question is: is there any way to change the resolution on an already existing jpg so that it creates a smaller jpg?

Thank you,



Reinaldo.
User avatar
reinaldocrespo
 
Posts: 972
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Postby reinaldocrespo » Sat Jul 07, 2007 1:32 am

What I need to know is if there is a utility to convert a jpg to another jpg with less (different) resolution. Or if perhaps freeimage could be used for this purpose.


Reinaldo.
User avatar
reinaldocrespo
 
Posts: 972
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Postby Rick Lipkin » Sat Jul 07, 2007 3:12 pm

I use Infranview ( free ) .. It is a viewer conversion ( re-sampling ) image program . .stand alone.

You can download it from here :

http://www.irfanview.com/

Rick Lipkin
SC Dept of Health, USA
User avatar
Rick Lipkin
 
Posts: 2618
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Postby RAMESHBABU » Sun Jul 08, 2007 6:46 pm

Mr.Reinaldo

I am using BMP2JPG.EXE, a file which converts a BMP file to JPG file
with the require percentage of quality. The Syntax is :

LOCAL cExec := 'BMP2JPG.EXE'

WaitRun(cExec+' -q'+LTRIM(STR(::nJpgQuality,3,0))+' -c' + ;
cOutputFile+' -o -s',0)

Please check your inbox for 'BMP2JPG.EXE'

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 614
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Postby Euclides » Sun Jul 08, 2007 8:21 pm

Hi Reinaldo,
In IrfanView, on the "Save" or "Save as" dialog, below there is a "Show options checkbox".
When clicked, shows the "JPEG/GIF Save Options" dialog.
In the JPG group there is a "Save quality" scroll bar.
Around 55 to 60 saves with a good quality and a good compression (1/10).
HTH
Regards, Euclides
User avatar
Euclides
 
Posts: 154
Joined: Wed Mar 28, 2007 1:19 pm

Postby RAMESHBABU » Mon Jul 09, 2007 2:21 am

You can have a look at "FastStone Image Viewer". It is free and having
lots of features.

http://www.FastStone.org

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 614
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Postby reinaldocrespo » Mon Jul 09, 2007 10:03 pm

Thank you very much for all the responses.

I'm going to try with IrfanView. It looks like it will do the job.

My plan is to use source code to extract all the images from the .fpt file creating a single .jpg for each image. Then use the IrfanView's batch convert option to convert each jpg to a lower resolution jpg in one single command.

In the meanwhile I changed my scanning routines to make sure scanning happens at a standarized resolution declared on an .ini file to avoid this **unnecesary** huge files from happening in the future.



Reinaldo.
User avatar
reinaldocrespo
 
Posts: 972
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 81 guests