eltiare / carrierwave-vips

CarrierWave image processing powered by VIPS
MIT License
91 stars 39 forks source link

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

Open foxeg opened 3 years ago

foxeg commented 3 years ago

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