Skip to content

Commit

Permalink
Merge pull request #33 from rbodziony/issuewithclp
Browse files Browse the repository at this point in the history
Fix for issue #32
  • Loading branch information
rbodziony authored Nov 29, 2023
2 parents 7ad73ed + 66dd349 commit 35568c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# mcf2pdf Converter for Mein CEWE Fotobuch (My CEWE Photobook) files to PDF

Latest Release: Version **0.7.3**
Latest Release: Version **0.7.4**


Initial Author: Florian Albrecht
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.florian-albrecht.tools</groupId>
<artifactId>mcf2pdf</artifactId>
<version>0.7.3-SNAPSHOT</version>
<version>0.7.4-SNAPSHOT</version>
<name>mcf2pdf</name>
<description>mcf2pdf enables you to convert photobooks generated with the My CEWE Photobook software to PDF files for preview.</description>

Expand Down
7 changes: 6 additions & 1 deletion src/main/java/net/sf/mcf2pdf/pagebuild/PageClipart.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ public BufferedImage renderAsBitmap(PageRenderContext context,
int heightPixel = context.toPixel(clipart.getArea().getHeight() / 10.0f);

drawOffsetPixels.x = drawOffsetPixels.y = 0;
return ImageUtil.loadClpFile(f, widthPixel, heightPixel);
BufferedImage loadedClip = ImageUtil.loadClpFile(f, widthPixel, heightPixel);
// apply rotation
if (clipart.getArea().getRotation() != 0) {
loadedClip = ImageUtil.rotateImage(loadedClip, (float)Math.toRadians(clipart.getArea().getRotation()), drawOffsetPixels);
}
return loadedClip;
}

@Override
Expand Down

0 comments on commit 35568c6

Please sign in to comment.