diff --git a/internal/epub/imageprocessor/epub_image_processor.go b/internal/epub/imageprocessor/epub_image_processor.go index 12c4943..3f40d38 100644 --- a/internal/epub/imageprocessor/epub_image_processor.go +++ b/internal/epub/imageprocessor/epub_image_processor.go @@ -207,9 +207,10 @@ func (e *EPUBImageProcessor) transformImage(input *task, part int, right bool) * dstBounds := g.Bounds(src.Bounds()) // Original && Cropped version need to landscape oriented - isDoublePage := srcBounds.Dx() > srcBounds.Dy() && dstBounds.Dx() > dstBounds.Dy() + // Only part 0 can be a double page + isDoublePage := part == 0 && srcBounds.Dx() > srcBounds.Dy() && dstBounds.Dx() > dstBounds.Dy() - if part == 0 && e.Image.AutoRotate && isDoublePage { + if e.Image.AutoRotate && isDoublePage { g.Add(gift.Rotate90()) }