The problem was that an empty recognized text (I'm not sure where it came from) expanded the determined table size. The size of the table was bigger as it was in real. That affected line 99 where the image-part with the date is cropped. Because the values which were used to crop the image were wrong, it returned an empty image. Finally the empty image couldn't be resized...
I don't know why it worked outside a Docker.
25 is still a big problem...
I also deleted imwrite because it was only necessary for tests.
The problem was that an empty recognized text (I'm not sure where it came from) expanded the determined table size. The size of the table was bigger as it was in real. That affected line 99 where the image-part with the date is cropped. Because the values which were used to crop the image were wrong, it returned an empty image. Finally the empty image couldn't be resized... I don't know why it worked outside a Docker.
25 is still a big problem...
I also deleted imwrite because it was only necessary for tests.