Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

harry91's avatar

Laravel DomPDF automatically rotate image to 90 degree. Image is coming from the twilio server. In html view it is working fine

Laravel DomPDF automatically rotate image to 90 degree. In the html view it is working fine. Image is loading from the twilio server.

I have tried all the scripts from the internet but there is not any luck. Because image is coming from the twilio server. This is the main challenge.

0 likes
2 replies
christian-qode's avatar

Maybe this is because some EXIF information in the image about the orientation? Try to strip it from the image and see the behavior afterwards in both the browser and PDF.

Please or to participate in this conversation.