multi page formats

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

Alessandro

multi page formats

Post by Alessandro »

Hi,

I tryed to store thumbnails into a multi layered psd.
The problem is that while acdesee shows only the layer on top of the stack (of layers), I can't see only this layer into PS trial, weird no? any idea?

Talking about multilayerd formats, psd is ok, but I'd like to use a format which uses jpeg compression to obtain smaller files.
I know that pdf and tiff can do it, but pdf isn't supported, what about tiff or other formats?

Best regards.
Guest

Post by Guest »

Hi,

I forgot to write a couple of questions:
1) if I already have a psd and I want to add only 1 layer on the top of the stack, can I update the psd or have I to rewrite all its layers? (hope no)
2) maybe psd can hold an unlimited number of layers, but if this isn't the case or gfllib supports a format which has that limit, how can be retrieved it?

Just as remark... if you need my code I'll attach it.
Alessandro

Post by Alessandro »

...
User avatar
xnview
Author of XnView
Posts: 44926
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: multi page formats

Post by xnview »

Alessandro wrote:Hi,

I tryed to store thumbnails into a multi layered psd.
The problem is that while acdesee shows only the layer on top of the stack (of layers), I can't see only this layer into PS trial, weird no? any idea?

Talking about multilayerd formats, psd is ok, but I'd like to use a format which uses jpeg compression to obtain smaller files.
I know that pdf and tiff can do it, but pdf isn't supported, what about tiff or other formats?
You can use tiff to store multi page
Pierre.
Alessandro

Post by Alessandro »

Sorry to bother you...
I was able to write the code to store multilayered tiff files but

1)
GFL_JPEG isn't documented in help file (for tiff which uses jpeg compression) so you could add it into the help file of the next version of your library
2)
multilayer tiff files are loaded correctly by acdsee but photoshop loads it as if they aren't multilayer and in my app channels are inverted even if I use ColorSpacaceConvert() function.
Talking about ColorSpaceConvert() function... loadImage() doesn't upsample correctly all the images <24bits, I solved it calling the ConvertColorSpace() function but I wonder how much it slows down the loading...

Thanks for your help again.
User avatar
xnview
Author of XnView
Posts: 44926
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

Alessandro wrote:Sorry to bother you...
I was able to write the code to store multilayered tiff files but

1)
GFL_JPEG isn't documented in help file (for tiff which uses jpeg compression) so you could add it into the help file of the next version of your library
2)
multilayer tiff files are loaded correctly by acdsee but photoshop loads it as if they aren't multilayer and in my app channels are inverted even if I use ColorSpacaceConvert() function.
Talking about ColorSpaceConvert() function... loadImage() doesn't upsample correctly all the images <24bits, I solved it calling the ConvertColorSpace() function but I wonder how much it slows down the loading...

Thanks for your help again.
Could you send the result file, and source code?
Pierre.