carrierwave-vips icon indicating copy to clipboard operation
carrierwave-vips copied to clipboard

Configure read access to fix VipsJpeg: out of order read at line for rotation

Open foxeg opened this issue 4 years ago • 0 comments

PR provides configuration for VIPS::Image read access with :sequential as default

The problem i'm trying to solve is that method rotate crashes with "VipsJpeg: out of order read at line 2560" with 'sequential' access and works well with 'random' (VIPS author comment on that: https://github.com/libvips/pyvips/issues/96#issuecomment-486143543)

def rotate
  manipulate! do |image|
    image.rot90
  end
end

Looking forward to hear a better decision

foxeg avatar Jun 05 '21 18:06 foxeg