[BUG] Problems with integrating and displaying images in discussions - distorted pictures.
![G](/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBeVVWQ3c9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--427f6d842f75ad18a6440e905b3743c587badd43/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFHQWFRR0FPZ3B6WVhabGNuc0hPZ3h4ZFdGc2FYUjVhVlU2Q25OMGNtbHdWQT09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--76fbfb4cf6c235059586b0c7c347dd0d77445cbe/images.png%3F1585996347)
What I did:
When I try to include images in the context of my thread or poll - since I am not able to variate the size of the picture in the thread, I used a table to reduce the size and to show small pictures of different options to choose.
I used Chrome for that.
What I intended:
Showing different pictures of options to choose from group members in a poll.
Like it is shown in the edit mode:
What I got:
Inserting images into the discussion results in distorted images
Any ideas why this happens?
I think this is an important feature to include images in a easy way and to adapt sizes of images.
![RG](/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBK0xZRVE9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--7a581de88c41bcec9b40d2bb53a4dc7ab8efdb69/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFHQWFRR0FPZ3B6WVhabGNuc0hPZ3h4ZFdGc2FYUjVhVlU2Q25OMGNtbHdWQT09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--bee53b50eefebbfaf3427852775dd64daaceca76/IMG_4141.CR2.jpg)
Robert Guthrie Sat 25 Apr 2020 6:06AM
Oh wow. Sorry about this problem. @Giuseppe
I really like your approach of using tables to achieve layouts that otherwise would be too hard. Nice!
I'm deploying a fix now. In about 15 minutes from this comment you should be able to reload and find the images are the correct proportions.
![G](/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBeVVWQ3c9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--427f6d842f75ad18a6440e905b3743c587badd43/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFHQWFRR0FPZ3B6WVhabGNuc0hPZ3h4ZFdGc2FYUjVhVlU2Q25OMGNtbHdWQT09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--76fbfb4cf6c235059586b0c7c347dd0d77445cbe/images.png%3F1585996347)
Giuseppe Sun 26 Apr 2020 9:12AM
Hello @Rob Guthrie , thanks for your reply! 🙂
I did a pull this night and tested the behaviour right now.
It behaves the same way on my computer. Did you already made the fix?
Thanks for support. Have a good day!
![RG](/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBK0xZRVE9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--7a581de88c41bcec9b40d2bb53a4dc7ab8efdb69/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFHQWFRR0FPZ3B6WVhabGNuc0hPZ3h4ZFdGc2FYUjVhVlU2Q25OMGNtbHdWQT09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--bee53b50eefebbfaf3427852775dd64daaceca76/IMG_4141.CR2.jpg)
Robert Guthrie Sun 26 Apr 2020 9:43AM
Oh, should have mentioned. You will need to use the "latest" branch in your docker-compose file. Edit your .env
file and replace stable with latest.
Confusingly, I think there is a env and a .env, so just be aware of that.
You'll also need to run the migrations (detailed in the readme) things have been moving quickly recently.
![G](/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBeVVWQ3c9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--427f6d842f75ad18a6440e905b3743c587badd43/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFHQWFRR0FPZ3B6WVhabGNuc0hPZ3h4ZFdGc2FYUjVhVlU2Q25OMGNtbHdWQT09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--76fbfb4cf6c235059586b0c7c347dd0d77445cbe/images.png%3F1585996347)
Giuseppe Mon 27 Apr 2020 9:29AM
Oh yes! Thanks for the hint. I did not know that. I tested it, made apull and everything works as aspected now! Thank you :) 🙌
Robert Guthrie · Sat 25 Apr 2020 5:58AM
OK. I'll see what's going on.
a
b
c