Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 17, 2020. It is now read-only.
This repository was archived by the owner on Sep 17, 2020. It is now read-only.

Determine image dimensions #2

@ancarda

Description

@ancarda

Given a small chunk of the bytes (e.g. 0-8192), the headers for JPEG, GIF, PNG, and WebP, and eventually others, could be parsed and the dimensions understood. This function could look like:

public function determineDimensions($fh): array

Where array is a array of integers containing [width, height], for example [8, 32] for an 8x32 image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions