Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MiniMagick::Error: convert /tmp/ActiveStorage-ef190ef2-c9f1-43ac-b919-5b1d145c024b-20230308-14953-vxw3ip.png[0] -auto-orient -resize 100x100> -auto-orient /tmp/image_processing20230308-14953-xcazd4.png failed with error: convert: improper image header ` #3354

Open
pgwillia opened this issue Jan 22, 2024 · 1 comment

Comments

@pgwillia
Copy link
Member

View details in Rollbar: https://app.rollbar.com/a/ualbertalib/fix/item/jupiter/1631


MiniMagick::Error: `convert /tmp/ActiveStorage-82dc8ce1-6408-42c0-b6bf-393f8443f84e-20240122-10788-aj3t9z.png[0] -auto-orient -resize 350x350> -auto-orient /tmp/image_processing20240122-10788-mbjt4t.png` failed with error:
convert: improper image header `/tmp/ActiveStorage-82dc8ce1-6408-42c0-b6bf-393f8443f84e-20240122-10788-aj3t9z.png' @ error/png.c/ReadPNGImage/4104.
convert: no images defined `/tmp/image_processing20240122-10788-mbjt4t.png' @ error/convert.c/ConvertImageCommand/3235.

  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/mini_magick-4.11.0/lib/mini_magick/shell.rb", line 17, in run
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/mini_magick-4.11.0/lib/mini_magick/tool.rb", line 92, in call
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/image_processing-1.12.2/lib/image_processing/mini_magick.rb", line 56, in save_image
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/image_processing-1.12.2/lib/image_processing/processor.rb", line 23, in call
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/image_processing-1.12.2/lib/image_processing/pipeline.rb", line 50, in call_processor
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/image_processing-1.12.2/lib/image_processing/pipeline.rb", line 28, in block in call
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/image_processing-1.12.2/lib/image_processing/pipeline.rb", line 64, in create_tempfile
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/image_processing-1.12.2/lib/image_processing/pipeline.rb", line 27, in call
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/image_processing-1.12.2/lib/image_processing/builder.rb", line 14, in block in call!
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/image_processing-1.12.2/lib/image_processing/builder.rb", line 21, in instrument
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/image_processing-1.12.2/lib/image_processing/builder.rb", line 13, in call!
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/image_processing-1.12.2/lib/image_processing/chainable.rb", line 60, in call
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/lib/active_storage/transformers/image_processing_transformer.rb", line 25, in process
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/lib/active_storage/transformers/transformer.rb", line 22, in transform
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/app/models/active_storage/variation.rb", line 56, in block in transform
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb", line 205, in instrument
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/app/models/active_storage/variation.rb", line 55, in transform
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/app/models/active_storage/variant_with_record.rb", line 35, in block in transform_blob
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/lib/active_storage/downloader.rb", line 15, in block in open
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/lib/active_storage/downloader.rb", line 24, in open_tempfile
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/lib/active_storage/downloader.rb", line 12, in open
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/lib/active_storage/service.rb", line 90, in open
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/app/models/active_storage/blob.rb", line 276, in open
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/app/models/active_storage/variant_with_record.rb", line 34, in transform_blob
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/app/models/active_storage/variant_with_record.rb", line 16, in process
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/app/models/active_storage/variant_with_record.rb", line 11, in processed
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/app/models/active_storage/preview.rb", line 103, in variant
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/app/models/active_storage/preview.rb", line 63, in url
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activestorage-6.1.7.6/app/controllers/active_storage/representations/redirect_controller.rb", line 10, in show
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/actionpack-6.1.7.6/lib/action_controller/metal/basic_implicit_render.rb", line 6, in send_action
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/actionpack-6.1.7.6/lib/abstract_controller/base.rb", line 228, in process_action
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/actionpack-6.1.7.6/lib/action_controller/metal/rendering.rb", line 30, in process_action
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/actionpack-6.1.7.6/lib/abstract_controller/callbacks.rb", line 42, in block in process_action
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb", line 117, in block in run_callbacks
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/actiontext-6.1.7.6/lib/action_text/rendering.rb", line 20, in with_renderer
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/actiontext-6.1.7.6/lib/action_text/engine.rb", line 59, in block (4 levels) in <class:Engine>
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb", line 126, in instance_exec
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb", line 126, in block in run_callbacks
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb", line 137, in run_callbacks
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/actionpack-6.1.7.6/lib/abstract_controller/callbacks.rb", line 41, in process_action
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/actionpack-6.1.7.6/lib/action_controller/metal/rescue.rb", line 22, in process_action
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb", line 34, in block in process_action
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb", line 203, in block in instrument
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.6/lib/active_support/notifications/instrumenter.rb", line 24, in instrument
  File "/var/www/sites/jupiter/vendor/ruby/3.1.0/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb", line 203, in instrument
  File "/var/www/sites/jupiter/vendor/
@pgwillia
Copy link
Member Author

Only need to figure out the impact on users and understand the nature of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant