Closed askprateek closed 3 years ago
It's really weird, most of my tests are actually run in Docker, so it's not about dockerising the app or anything, you need to double check your app source code, maybe there's something that's being done differently; without seeing the code where you use the reshaper it will be difficult for me to help.
Thanks for the speedy reply. I found the issue.
It was happening because I was splitting the output get_display
method and then write the text on image.
I changed the order of things and it works
Step 1: User arabic_reshaper method to reshape text.
Step 2: Split the paragraph into multiple lines.
Step 3: Apply the get_display
method just before writing the text on the image.
Swapping steps 2 and 3 was the root cause.
I'm building an application using this package. The objective of the app is to write Arabic text on images. My app works fine on my local machine but once deployed via docker, it breaks. Characters appear isolated/disjointed.
Code running inside Inside Docker Image![image](https://user-images.githubusercontent.com/9272830/89273228-e412e400-d65c-11ea-81f1-e1e047e4a73f.png)
Correct Image (Working Locally)![image](https://user-images.githubusercontent.com/9272830/89273331-04db3980-d65d-11ea-8a74-8968770c91f4.png)
requirements.txt