This question has been flagged

I am trying to show different size of image on website. When I use following line of code, it gives me 500 Internal Server Error :


<img t-att-src="'/logo.png;base64,'" t-att-title="res_company.name" style="max-width: 200px; max-height: 150px;"/>


It seems that whenever I use base64, it gives me internal server error. How to fix it?

Avatar
Discard

Can you post the complete code (seems to be truncked... because "'/logo.png;base64,'" it is no valid ! Why are you trying to use base64 if you have the path ?

And please, provide the traceback present in your logs.

That sound like it is not root cause of your internal error.

Just tested here: http://172938-9-0-e72b85-all.runbot10.odoo.com/page/test1

Author

I was using base64 so that I could change the size of logo on website. The company logo gets resized to 183px (approx) and I needed to have bigger logo on website. I found this on forum - https://www.odoo.com/forum/help-1/question/how-change-the-logo-size-101691

Later I created image field and showed that on website.