cantaloupe-project / cantaloupe

High-performance dynamic image server in Java
https://cantaloupe-project.github.io/
Other
268 stars 111 forks source link

Very slow scaling using Java2DProcessor #420

Open bingaman opened 3 years ago

bingaman commented 3 years ago

We are attempting to use cantaloupe to serve derivatives from zip JPEG compressed ptiffs. Using JAI, unfortunately the workaround for issue #94 has output unacceptable derivatives in addition to issue #419 which we were more or less able to work around. JAI performs well but the output quality from nearest-neighbor interpolation is correctly described as horrible and for our use (displaying artworks) it is not acceptable.

Going back to Java2dProcessor we end up with derivatives that can take up to 3-9 seconds to create at times. I will post some examples below. Earlier tests showed much better performance so we are at a loss as to what is causing the slow render times from Java2DProcessor.

I will post some example ptiffs below.

bingaman commented 3 years ago

Dropping a comment to say I have just learned that some of the ptifs are over 200MB in size so perhaps slow processing is not surprising there

jbarth-ubhd commented 3 years ago

Pyramidal tiff file size is not the problem: https://github.com/cantaloupe-project/cantaloupe/issues/296

Withdrawn. 90 % of the problem was our delegate.rb without caching.