Skip to content

Comments

Do not mutate image buffer#25

Open
paradoxxxzero wants to merge 1 commit intodiegomura:mainfrom
paradoxxxzero:patch-1
Open

Do not mutate image buffer#25
paradoxxxzero wants to merge 1 commit intodiegomura:mainfrom
paradoxxxzero:patch-1

Conversation

@paradoxxxzero
Copy link

reverse is a mutable function, we should copy the Uint8Array before reversing.

This fixes the react-pdf exif problem being rendered wrong every two renders.

Fixes diegomura/react-pdf#2972

`reverse` is a mutable function, we should copy the `Uint8Array`  before reversing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Orientation of some images is incorrect

1 participant