josch commented on pull request josch/img2pdf#138 2022-04-07 20:03:27 +00:00
Add B and JB paper sizes

merged with 5045282cc2b467bb8575f4df452d40428afc055b

josch pushed to main at josch/img2pdf 2022-04-07 20:02:56 +00:00
5045282cc2 Add B and JB paper sizes
josch pushed to main at josch/img2pdf 2022-04-07 19:58:42 +00:00
fb4b96452a reformat with black
c553e169a4 use TiffImagePlugin.STRIP_SIZE for Pillow >= 8.4.0
d9345ac767 set GifImagePlugin.LOADING_STRATEGY to RGB_AFTER_DIFFERENT_PALETTE_ONLY in Pillow >= 9.1.0 (closes: #130)
1d52530229 support new pikepdf.Page object when making indirect objects (closes: #132)
Compare 4 commits »
josch closed issue josch/img2pdf#130 2022-04-07 19:58:41 +00:00
Help needed: GIF tests fail with Pillow 9.0.0
josch closed issue josch/img2pdf#132 2022-04-07 19:58:40 +00:00
error: Can't convert ObjectHelper (or subclass) to Object implicitly. Use .obj to get access the underlying object.
josch pushed to main at josch/img2pdf 2022-04-07 15:13:24 +00:00
3b117e674b clarify that input with an alpha channel requires additional computation (closes: #142)
josch closed issue josch/img2pdf#142 2022-04-07 15:13:23 +00:00
Document performance cost of using transparent PNG images
josch commented on issue josch/img2pdf#142 2022-04-07 14:57:01 +00:00
Document performance cost of using transparent PNG images

That's an improvement, but from an image encoding newbie's perspective it would be even more helpful if it said something explicitly like 'Encoding separate soft mast (/SMask) to support…

josch commented on issue josch/img2pdf#142 2022-04-07 14:40:24 +00:00
Document performance cost of using transparent PNG images

Good point! What do you think about this re-phrasing:

--- a/src/img2pdf.py
+++ b/src/img2pdf.py
@@ -1823,8 +1842,8 @@ def read_images(rawdata, colorspace, first_frame_only=False,…
josch commented on issue josch/img2pdf#141 2022-04-05 08:24:35 +00:00
[Feature Req] Add image name to page

And then you need:

  • selecting which font
  • selecting align (left, center, right)
  • selecting font size
  • selecting margin
  • selecting padding
  • selecting font color
  • selecting…
josch commented on issue josch/img2pdf#139 2022-04-04 17:34:39 +00:00
Limit on the input file size?

Do I see this correctly, that when running img2pdf.convert() you get no output and are just thrown out of your python interpreter? I've never seen that. I have no idea why you do not get any…

josch commented on issue josch/img2pdf#139 2022-04-02 09:28:48 +00:00
Limit on the input file size?

When you say "quit" -- what is the error message you get? Without more details I'm afraid I cannot know what is wrong.

There is certainly no artificial limit in the img2pdf code that aborts if…

josch commented on issue josch/img2pdf#122 2022-03-30 19:03:01 +00:00
Transcoding to Monochrome Fails with Pillow >= 8.3.0

Suppose the following diff:

@@ -1410,27 +1420,35 @@ def transcode_monochrome(imgdata):
     # into putting everything into a single strip. Thanks to Andrew Murray for
     # the…
josch commented on issue josch/img2pdf#46 2022-03-30 18:46:11 +00:00
Issue to convert tiff file

I agree. And if we start thinking about performance, then the whole transcode_monochrome functions should be replaced by code that actually encodes CCITT Group4 in C without going through PIL…

josch commented on issue josch/img2pdf#46 2022-03-30 15:45:15 +00:00
Issue to convert tiff file

That's good to know but the workaround still needs to stay to support older versions of libtiff. Or is there a reason to remove it or make it conditional?

josch commented on issue josch/img2pdf#46 2022-03-30 14:05:02 +00:00
Issue to convert tiff file

You mean the workaround introduced by 75c43de09dc872ed3ce4ace6cad9d708318be5ad?

josch commented on issue josch/img2pdf#46 2022-03-30 13:43:29 +00:00
Issue to convert tiff file

Yes, here you go:

josch commented on issue josch/img2pdf#122 2022-03-30 12:58:16 +00:00
Transcoding to Monochrome Fails with Pillow >= 8.3.0

Since Pillow 8.4.0, TiffImagePlugin has the attribute STRIP_SIZE with the default value of 65536. You can probably create such a TIFF file by setting STRIP_SIZE to a value above 65536 and then…

josch commented on issue josch/img2pdf#137 2022-03-29 18:20:36 +00:00
pdf2img?
josch pushed to main at josch/mmdebstrap 2022-03-25 13:27:36 +00:00
57e0ecb20f release 0.8.6
70b081d299 allow running root mode inside unshare mode
a6186e8485 add .mailmap
Compare 3 commits »