Skip to content
  • Jonathan Hefner's avatar
    c5133f00
    Require ruby-vips before downloading blob · c5133f00
    Jonathan Hefner authored
    This ensures that if `download_blob_to_tempfile` raises an error before
    evaluating its block, `rescue ::Vips::Error` will not cause a
    `NameError` due to `ruby-vips` not being loaded yet.
    
    This also prevents the blob from being downloaded if `ruby-vips` is not
    available to analyze it.
    
    A similar change was made for `Analyzer::ImageAnalyzer::ImageMagick`
    in #45420.
    c5133f00
    Require ruby-vips before downloading blob
    Jonathan Hefner authored
    This ensures that if `download_blob_to_tempfile` raises an error before
    evaluating its block, `rescue ::Vips::Error` will not cause a
    `NameError` due to `ruby-vips` not being loaded yet.
    
    This also prevents the blob from being downloaded if `ruby-vips` is not
    available to analyze it.
    
    A similar change was made for `Analyzer::ImageAnalyzer::ImageMagick`
    in #45420.
Loading