PDF v0.3.1 Pdf.Images.JPEG View Source

Link to this section Summary

Functions

Decodes an image and returns the bit depth, height, width and colour color_type

Link to this section Functions

Decodes an image and returns the bit depth, height, width and colour color_type

Examples:

> Pdf.Image.JPEG.decode("path/to/image.jpg")
%Pdf.Image.JPEG{bit_depth: 8, height: 75, width: 100, color_type: 3}
Link to this function

prepare_image(image_data)

View Source