imghelper: helpers for images

Export

pyquickhelper.imghelper.img_export.images2pdf (images, output, fLOG = None)

Merges multiples images into one single pdf. Relies on img2pdf. If an image name contains '*', the function assumes it is a pattern and uses glob.

pyquickhelper.imghelper.svg_helper.svg2img (svg, dpi = None, scale = 1.0, kwargs)

Converts an image in SVG format.

Image manipulations

pyquickhelper.imghelper.img_helper.concat_images (imgs, height = 200, width = 800, weight_above = 10, weight_below = 1, background = (0, 0, 0), out_file = None)

Concatenates images into an image with several rows of images.

https://github.com/sdpython/pyquickhelper/raw/master/_unittests/ut_imghelper/data/merged_image6.png

pyquickhelper.imghelper.white_to_transparency (img, out_file = None)

Sets white color as transparency color.

pyquickhelper.imghelper.zoom_img (img, factor = 1.0, max_dim = None, out_file = None, fLOG = None)

Zooms an image.