Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: image watermark panics #222

Closed
lhq0826 opened this issue Sep 9, 2020 · 4 comments
Closed

cli: image watermark panics #222

lhq0826 opened this issue Sep 9, 2020 · 4 comments
Assignees
Labels

Comments

@lhq0826
Copy link

lhq0826 commented Sep 9, 2020

$ pdfcpu watermark add -mode image 'draft_icon.png' 'rotation:-30, scalefactor:1 abs' test.pdf 456.pdf
writing 456.pdf...
pages: all
unexpected panic attack: interface conversion: color.Color is color.NRGBA, not color.RGBA

Linux 42ded2a8723f 4.19.76-linuxkit #1 SMP Tue May 26 11:42:35 UTC 2020 x86_64 GNU/Linux

-rw-r--r-- 1 root root 135K Sep 9 10:30 draft_icon.png

@hhrutter
Copy link
Collaborator

hhrutter commented Sep 9, 2020

Hi!

Thanks for reporting this!

Unfortunately without a stack trace this is going to be difficult to debug.

If you can share a sample file that reproduces this we can fix this.
Either post here or send me an email: hhrutter@gmail.com

Thank you for using pdfcpu 💚

@hhrutter hhrutter added the bug label Sep 9, 2020
@hhrutter hhrutter changed the title add image watermark error add image watermark panics Sep 9, 2020
@hhrutter hhrutter changed the title add image watermark panics cli: image watermark panics Sep 9, 2020
@shvc
Copy link

shvc commented Sep 18, 2020

  • version: Linux x86_64
./pdfcpu version
pdfcpu: 0.3.5
build : 2020-08-30T22:40:02Z
commit: 6faa4ad
  • watermark image
http://nginx.org/nginx.png
  • pdf file
http://africau.edu/images/default/sample.pdf
  • error command
./pdfcpu watermark add -mode image 'nginx.png' 'rotation:-30, scalefactor:1 abs' sample.pdf
writing sample.pdf...
pages: all
unexpected panic attack: interface conversion: color.Color is color.NRGBA, not color.RGBA

@hhrutter
Copy link
Collaborator

Thanks I take a look!

@hhrutter hhrutter self-assigned this Sep 18, 2020
@hhrutter
Copy link
Collaborator

Fixed with latest commit!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants