OCRmyPDF.sh: Fixed major problem with deskew

After deskew the images was cropped to the wrong size
This commit is contained in:
fritz-hh
2013-04-26 19:37:02 +02:00
parent c4cd7e1982
commit 6372cec6b8
+1 -1
View File
@@ -234,7 +234,7 @@ while read pageSize ; do
# if requested deskew image (without changing its size in pixel)
if [ "$PREPROCESS_DESKEW" -eq "1" ]; then
[ $VERBOSITY -ge $LOG_DEBUG ] && echo "Page $page: Deskewing image"
! convert "$curImgPixmap" -deskew 40% -gravity center -extent ${heightCurImg}x${widthCurImg} "$curImgPixmapDeskewed" \
! convert "$curImgPixmap" -deskew 40% -gravity center -extent ${widthCurImg}x${heightCurImg} "$curImgPixmapDeskewed" \
&& echo "Could not deskew \"$curImgPixmap\". Exiting..." >&2 && exit $EXIT_OTHER_ERROR
else
cp "$curImgPixmap" "$curImgPixmapDeskewed"