SpinaCMS / Spina

Spina CMS
http://www.spinacms.com
Other
2.19k stars 405 forks source link

Images broken in Admin #562

Closed itsameandrea closed 2 years ago

itsameandrea commented 4 years ago

Hey folks!

I've integrated Spina in my application and I'm using ActiveStorage. I've seen that the images in the admin interface are broken, whereas in the actual website they do work.

It seems to be down to the URL. In the Admin interface the url looks like so:

/rails/active_storage/representations/blablabla.jpg

whereas in the page the URL looks like so

/rails/active_storage/blob/blablabla.jpg

How can I get the images to show up?

Bramjetten commented 4 years ago

Can you make variants of your images on your page?

itsameandrea commented 4 years ago

Good question. The variant does break in the page as well

Bramjetten commented 4 years ago

Then I think there might be something wrong with your ActiveStorage / ImageProcessing setup. I think your Rails app is unable to resize images.

simmerz commented 4 years ago

@ilrock Do you have the image_processing gem in your Gemfile, and do you have image/graphicsmagick installed on your machine?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.