kubi icon indicating copy to clipboard operation
kubi copied to clipboard

Quality of tiles

Open jack-solutions opened this issue 2 years ago • 2 comments

How we can improve the image quality of tiles? right now it seems it is degrading the quality. even though we have tried 100% in Q parameter.

Let me know what am i doing wrong?

kubi -s 2048 -co tile_size=512 -co depth=onetile -co overlap=0 -co layout=google -co suffix=.jpg[Q=75] -f r l u d f b srcfile dstfile.dz

it seems tiles are generated with jpg thats why? @indus

jack-solutions avatar Oct 16 '23 12:10 jack-solutions

it seems tiles are generated with jpg thats why? @indus

@jack-solutions that is because of the suffix option you are using... You can change that to any other filetype supported by Vips.

try kubi -s 2048 -co tile_size=512 -co depth=onetile -co overlap=0 -co layout=google -co suffix=.png -f r l u d f b srcfile dstfile.dz or kubi -s 2048 -co tile_size=512 -co depth=onetile -co overlap=0 -co layout=google -co suffix=.tiff -f r l u d f b srcfile dstfile.dz

To give you some explanation - the dz in in dstfile.dz is not a real fileype; it stands for "DeepZoom" and just tells vips to create a pyramid of image tiles in a folder structure. The layout property is what decides how the folders/folders are organized and named. The suffix is what really decides on the filetype of the images with more optional and type-specific parameters in []. This is all Vips way of doing - stuff kubi just reuses it: https://www.libvips.org/API/current/Making-image-pyramids.html

indus avatar Oct 16 '23 14:10 indus

To give you some explanation - the dz in in dstfile.dz is not a real fileype; it stands for "DeepZoom" and just tells vips to create a pyramid of image tiles in a folder structure. ==> yes correct and we are already generating a pyramid level. thank you for the reponse on that.

let me try tiff and let you know

Thanks man

jack-solutions avatar Oct 17 '23 08:10 jack-solutions