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

Bug: Incompatible avec Vips #6

Open
SebouChu opened this issue Apr 2, 2022 · 0 comments
Open

Bug: Incompatible avec Vips #6

SebouChu opened this issue Apr 2, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@SebouChu
Copy link
Member

SebouChu commented Apr 2, 2022

Vips ne gère pas la syntaxe suivante :

@article.illustration.variant(resize: "500>")

Il faut basculer sur la syntaxe suivante :

@article.illustration.variant(resize_to_limit: [500, nil])

Documentation

Crash report

20:52:31 web.1  | TypeError (no implicit conversion to float from string):
20:52:31 web.1  |   
20:52:31 web.1  | ruby-vips (2.1.4) lib/vips/gvalue.rb:106:in `g_value_set_double'
20:52:31 web.1  | ruby-vips (2.1.4) lib/vips/gvalue.rb:106:in `set'
20:52:31 web.1  | ruby-vips (2.1.4) lib/vips/object.rb:252:in `set'
20:52:31 web.1  | ruby-vips (2.1.4) lib/vips/operation.rb:286:in `set'
20:52:31 web.1  | ruby-vips (2.1.4) lib/vips/operation.rb:464:in `block in call'
20:52:31 web.1  | ruby-vips (2.1.4) lib/vips/operation.rb:456:in `each_index'
20:52:31 web.1  | ruby-vips (2.1.4) lib/vips/operation.rb:456:in `call'
20:52:31 web.1  | ruby-vips (2.1.4) lib/vips/image.rb:229:in `method_missing'
20:52:31 web.1  | image_processing (1.12.2) lib/image_processing/processor.rb:62:in `public_send'
20:52:31 web.1  | image_processing (1.12.2) lib/image_processing/processor.rb:62:in `apply_operation'
20:52:31 web.1  | image_processing (1.12.2) lib/image_processing/processor.rb:39:in `apply_operation'
20:52:31 web.1  | image_processing (1.12.2) lib/image_processing/processor.rb:19:in `block in call'
20:52:31 web.1  | image_processing (1.12.2) lib/image_processing/processor.rb:18:in `each'
20:52:31 web.1  | image_processing (1.12.2) lib/image_processing/processor.rb:18:in `call'
20:52:31 web.1  | image_processing (1.12.2) lib/image_processing/pipeline.rb:50:in `call_processor'
20:52:31 web.1  | image_processing (1.12.2) lib/image_processing/pipeline.rb:28:in `block in call'
20:52:31 web.1  | image_processing (1.12.2) lib/image_processing/pipeline.rb:64:in `create_tempfile'
20:52:31 web.1  | image_processing (1.12.2) lib/image_processing/pipeline.rb:27:in `call'
20:52:31 web.1  | image_processing (1.12.2) lib/image_processing/builder.rb:14:in `block in call!'
20:52:31 web.1  | image_processing (1.12.2) lib/image_processing/builder.rb:21:in `instrument'
20:52:31 web.1  | image_processing (1.12.2) lib/image_processing/builder.rb:13:in `call!'
20:52:31 web.1  | image_processing (1.12.2) lib/image_processing/chainable.rb:60:in `call'
20:52:31 web.1  | activestorage (7.0.2.3) lib/active_storage/transformers/image_processing_transformer.rb:316:in `process'
20:52:31 web.1  | activestorage (7.0.2.3) lib/active_storage/transformers/transformer.rb:22:in `transform'
20:52:31 web.1  | activestorage (7.0.2.3) app/models/active_storage/variation.rb:56:in `block in transform'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/notifications.rb:206:in `block in instrument'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/notifications.rb:206:in `instrument'
20:52:31 web.1  | activestorage (7.0.2.3) app/models/active_storage/variation.rb:55:in `transform'
20:52:31 web.1  | activestorage (7.0.2.3) app/models/active_storage/variant_with_record.rb:35:in `block in transform_blob'
20:52:31 web.1  | activestorage (7.0.2.3) lib/active_storage/downloader.rb:15:in `block in open'
20:52:31 web.1  | activestorage (7.0.2.3) lib/active_storage/downloader.rb:24:in `open_tempfile'
20:52:31 web.1  | activestorage (7.0.2.3) lib/active_storage/downloader.rb:12:in `open'
20:52:31 web.1  | activestorage (7.0.2.3) lib/active_storage/service.rb:90:in `open'
20:52:31 web.1  | activestorage (7.0.2.3) app/models/active_storage/blob.rb:301:in `open'
20:52:31 web.1  | activestorage (7.0.2.3) app/models/active_storage/variant_with_record.rb:34:in `transform_blob'
20:52:31 web.1  | activestorage (7.0.2.3) app/models/active_storage/variant_with_record.rb:19:in `process'
20:52:31 web.1  | activestorage (7.0.2.3) app/models/active_storage/variant_with_record.rb:14:in `processed'
20:52:31 web.1  | activestorage (7.0.2.3) app/controllers/active_storage/representations/base_controller.rb:14:in `set_representation'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/callbacks.rb:400:in `block in make_lambda'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/callbacks.rb:199:in `block (2 levels) in halting'
20:52:31 web.1  | actionpack (7.0.2.3) lib/abstract_controller/callbacks.rb:34:in `block (2 levels) in <module:Callbacks>'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/callbacks.rb:200:in `block in halting'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/callbacks.rb:595:in `block in invoke_before'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/callbacks.rb:595:in `each'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/callbacks.rb:595:in `invoke_before'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/callbacks.rb:116:in `block in run_callbacks'
20:52:31 web.1  | actiontext (7.0.2.3) lib/action_text/rendering.rb:20:in `with_renderer'
20:52:31 web.1  | actiontext (7.0.2.3) lib/action_text/engine.rb:69:in `block (4 levels) in <class:Engine>'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/callbacks.rb:127:in `instance_exec'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/callbacks.rb:127:in `block in run_callbacks'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/callbacks.rb:138:in `run_callbacks'
20:52:31 web.1  | actionpack (7.0.2.3) lib/abstract_controller/callbacks.rb:233:in `process_action'
20:52:31 web.1  | actionpack (7.0.2.3) lib/action_controller/metal/rescue.rb:22:in `process_action'
20:52:31 web.1  | actionpack (7.0.2.3) lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/notifications.rb:206:in `block in instrument'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/notifications.rb:206:in `instrument'
20:52:31 web.1  | actionpack (7.0.2.3) lib/action_controller/metal/instrumentation.rb:66:in `process_action'
20:52:31 web.1  | actionpack (7.0.2.3) lib/action_controller/metal/params_wrapper.rb:259:in `process_action'
20:52:31 web.1  | activerecord (7.0.2.3) lib/active_record/railties/controller_runtime.rb:27:in `process_action'
20:52:31 web.1  | actionpack (7.0.2.3) lib/abstract_controller/base.rb:151:in `process'
20:52:31 web.1  | actionview (7.0.2.3) lib/action_view/rendering.rb:39:in `process'
20:52:31 web.1  | actionpack (7.0.2.3) lib/action_controller/metal/live.rb:266:in `block (2 levels) in process'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/concurrency/share_lock.rb:162:in `sharing'
20:52:31 web.1  | activesupport (7.0.2.3) lib/active_support/dependencies/interlock.rb:37:in `running'
20:52:31 web.1  | actionpack (7.0.2.3) lib/action_controller/metal/live.rb:258:in `block in process'
20:52:31 web.1  | actionpack (7.0.2.3) lib/action_controller/metal/live.rb:343:in `block in new_controller_thread'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant