Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Not able to change images size #3700
Comments
|
Hi, any idea? @kennyadsl |
|
It doesn't seem to work any longer with Rails 6 / Zeitwerk in an initializer.
For more details about Decorations: https://guides.solidus.io/developers/customizations/decorators.html With Rails 5.2 it works fine @kennyadsl i am not sure how to make it work again in Zeitwerk. Maybe you can suggest something? |
|
I think it's a filename issue. Where this |
|
The Image Decorator would be a workaround. Normally
should work in an initializer like stated here Product images which seems not to work in rails 6 |
|
Oh, you are right. This seems like a bug then, I'll try to take a look asap. |
|
There is another workaround You are able to set your own |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

I am trying to change sizes with this in the initializer:
Spree::Image.attachment_definitions[:attachment][:styles] = {
mini: '48x48>',
small: '100x100>',
product: '240x240>',
large: '600x600>'
}
But 'module Spree::Image::ActiveStorageAttachment' don't take new sizes. How to do it?
Solidus Version:
Last version of master
To Reproduce