Loading...

Joining and compressing multi jpg's

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

Joining and compressing multi jpg's

Postby petermeach » Tue Aug 16, 2011 4:02 pm

We have a requirement to join several jpg's and store them efficiently. I've been trying to do this as multipage tifs but with no success. Using a 1/2 Mb test picture, if I save it as a tif it is 3Mb, if i use jpg compression it is 1/4 Mb but not visible in Windows picture viewer (no preview available is the message) and if I use jpg compression I only get 1 picture, not several.

What is the solution please? I've read various threads on this topic but i don't see any resolution. I don't really care how they are saved so long as the file size is sensible and can be viewed. I can see the pictures in the control, but am a little concerned i can't in picture viewer.

This is the code

AxImaging1.CreateImageFromFile(cOutputFileName)
AxImaging1.SaveAsTIFFjpgEx("C:\overdrive\SaveAsTIFFjpgEx.tif", 70)
AxImaging1.SaveAsTIFFjpg("C:\overdrive\SaveAsTIFFjpg.tif")

neither of these produce a multipage image

Aside from that, the control is wonderful
petermeach
 
Posts: 21
Joined: Wed Oct 08, 2008 2:59 pm

Re: Joining and compressing multi jpg's

Postby Loïc » Wed Aug 17, 2011 8:12 am

Hi Peter,

You have 2 (or 3) options:

1: Save to multipage tiff using LZW compression scheme. Unfortunately, this should produce larger document than input.
2: Save all JPEGS to a PDF. You can expect similar file size.
3: Consider GdPicture.NET than can produce multipage tiff with JPEG compression.

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Joining and compressing multi jpg's

Postby petermeach » Wed Aug 17, 2011 4:54 pm

I'll use SaveAsPdf, that seems to compress beautifully, simplest way out too. Thanks for the quick reply
petermeach
 
Posts: 21
Joined: Wed Oct 08, 2008 2:59 pm


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest