Re: Convert and save BMP to JPG file

new topic     » goto parent     » topic index » view thread      » older message » newer message
SergioGelli said...

I've tried before http://freeimage.sourceforge.net information on the Site and also on user contributions Euphoria.

My difficulty is I do not understand how they work, I can not mount and use the functions contained in the "freeImage.DLL" within a Euphoria program.

Tommy's contribution is fairly easy, but has no function to save a JPG file, he only uses BMP files

The library of Ryan Rubley, "freeImage.ew" gives no examples and my attempts end in errors

I need a simple example that opens "freeImage.Dll" and save a file using TIFF_JPEG = # 8000 - save using JPEG compression

But I do not know how.

Can anyone help?

I have finally got round to offering a 'save' function to the Euphoria Archive.
It uses freeimage and is likely to be the latest entry in the Archive.
It is only the save function, so you will need Tommy Carlier's freedib as well.
You should be able to write:

status = SaveFreeDib(DIB,file,24,TIFF_JPEG) 


Please let me know if it works; either by the email address indicated in the distribution or via the forum.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu