jrochkind
  • Joined on 2023-08-03
jrochkind commented on issue josch/img2pdf#173 2023-08-08 18:00:27 +00:00
alpha channel and jp2

Thank you, makes sense!

I was using the vips tool intending to convert a TIFF to a .JP2, and the invocation I used normally outputs a .JP2, but in this case output a raw JPEG2000 stream -- at…

jrochkind commented on issue josch/img2pdf#173 2023-08-08 13:33:34 +00:00
alpha channel and jp2

It turns out, that this is a file without the jp2 metadata around it but just a raw jpeg2000 bitstream

wow, thanks for the quick diagnosis.

That is interesting, because it was definitely…

jrochkind commented on issue josch/img2pdf#173 2023-08-07 21:08:00 +00:00
alpha channel and jp2

Oh wow, I actually hadn't noticed that original was 16 bits per pixel either. That is also not normally what we intend.

But when you have 100k plus digitizations of historical material done by…

jrochkind commented on issue josch/img2pdf#173 2023-08-07 16:15:51 +00:00
alpha channel and jp2

Thanks @josch!

We are not live yet using img2pdf. But plan to use img2pdf to help power our PDF downloads at https://digital.sciencehistory.org.

I am trying to use an unreleased git copy of…

jrochkind commented on issue josch/img2pdf#173 2023-08-07 14:18:49 +00:00
alpha channel and jp2

Thanks @josch! I didn't mean to pressure or anything, just plain curious about your plans, since I'm unfamiliar with this project's release procedure!

I am sorry the tests are giving you…

jrochkind commented on issue josch/img2pdf#173 2023-08-03 22:14:06 +00:00
alpha channel and jp2

Actually, I figured it out.

And have verified it produced output pdf that looks right, without error!

Awesome!

pip3 install image
python3 src/img2pdf.py jp2-with-alpha.jp2 -o…
jrochkind commented on issue josch/img2pdf#173 2023-08-03 22:08:09 +00:00
alpha channel and jp2

I'm sorry, I'm not trying to get basic python getting started help from you, but when I try running the patched img2pdf directly from clone, I get:

Traceback (most recent call last):
 …
jrochkind commented on issue josch/img2pdf#173 2023-08-03 21:33:20 +00:00
alpha channel and jp2

Thank you!

I'm not much of a pythonista, nor am I used to dealing with patch files, it may take me a bit of time to figure out how to apply the patch locally.

I'm on leave tomorrow, but…

jrochkind commented on issue josch/img2pdf#173 2023-08-03 18:46:22 +00:00
alpha channel and jp2

Yes, after downloading the attachment above, it does still reproduce for me.

jrochkind-shi scihist_digicoll (master ?) $ img2pdf --version
img2pdf 0.4.4

jrochkind-shi scihist_digicoll…
jrochkind commented on issue josch/img2pdf#173 2023-08-03 18:45:20 +00:00
alpha channel and jp2

Ooh, that's way better response than I hoped, I thought I was seeing expected behavior! I'm glad I filed it, I almost didn't file it, worried I was being annoying! Thank you so much for your quick…

jrochkind opened issue josch/img2pdf#173 2023-08-03 15:50:56 +00:00
alpha channel and jp2