Feb
27
revised How to use Pillow to set RGB value of a PNG based on a binary mask
added 906 characters in body
Feb
27
comment How to use Pillow to set RGB value of a PNG based on a binary mask
I did check the size, they are identical: <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=400x225 at 0x20FE296D430> <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=400x225 at 0x20FE2A19910>
Feb
27
comment How to use Pillow to set RGB value of a PNG based on a binary mask
Thanks for your help! But your code throw an error when I run it: ValueError: images do not match
Feb
27
asked How to use Pillow to set RGB value of a PNG based on a binary mask
Feb
22
accepted Lambda error uploading PIL image into S3 bucket
Feb
17
asked How to directly generate presigned url if key exist in S3, or upload obj and create key
Feb
15
answered Lambda error uploading PIL image into S3 bucket
Feb
15
asked Lambda error uploading PIL image into S3 bucket
Jan
20
comment Can I generate presigned link before I put the item into S3 bucket?
I don't think async is the solution here. Base on my limited knowledge, I need to store the img into S3 and then based on its key to generate the presigned link. I wonder if it is possible to generate a link first so I can instantly respond to the request, and then save the img to S3.
Jan
20
asked Can I generate presigned link before I put the item into S3 bucket?
Jan
19
asked cannot import name '_imaging' from 'PIL' when using Pillow on AWS Lambda
Jan
18
comment Let multiple pair of images overlay within their own div
This works just as expected, thanks a lot :) !
Jan
18
accepted Let multiple pair of images overlay within their own div
Jan
18
revised Let multiple pair of images overlay within their own div
added 390 characters in body
Jan
18
comment Let multiple pair of images overlay within their own div
By the way, is it possible to not differentiate "base" and "overlay", and just let img2 over img1, and img4 over img3?
Jan
18
comment Let multiple pair of images overlay within their own div
I tested it in playcode.io/css and the display is incorrect. I put them in a HTML and the display is now correct. Thanks!
Jan
18
comment Let multiple pair of images overlay within their own div
Thanks, I tried it but the two images are displayed side by side, instead of one above another.
Jan
18
asked Let multiple pair of images overlay within their own div
2023
Dec
31
comment Two images do not perfect align when using Pillow putalpha to set image transparency
Thanks for the suggestion, my question is more leaning to the "why" side, because I can just use the original image rather than split and then composite them together. What is the reason this white line exist, is there something I did incorrectly to use the putalpha function?
Dec
30
revised Two images do not perfect align when using Pillow putalpha to set image transparency
added 220 characters in body
1 2 3 4 5