Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Rotation #221

Closed
des-coder opened this issue Jul 10, 2021 · 2 comments
Closed

Image Rotation #221

des-coder opened this issue Jul 10, 2021 · 2 comments
Assignees

Comments

@des-coder
Copy link

Can you add an optional image type for rotation.

/src/types.ts

insert into ImagePars Line 222:

  /**
   * Optional rotation in degrees.
   */
  rotation?: number;

/src/processTemplate.ts

insert into processImage Line 801:

const rot = (imagePars.rotation * 60e3).toString() || "0";

Edit line 853

node('a:xfrm', {}, [
-->
node('a:xfrm', {rot: rot}, [

@jjhbw jjhbw self-assigned this Jul 10, 2021
@jjhbw
Copy link
Collaborator

jjhbw commented Jul 10, 2021

Good idea! Seems like a nice simple addition. I've implemented this with 64cd578.

It will be a part of the next release. Thanks for the suggestion.

@jjhbw jjhbw closed this as completed Jul 10, 2021
@jjhbw jjhbw mentioned this issue Jul 11, 2021
@jjhbw
Copy link
Collaborator

jjhbw commented Jul 12, 2021

Fix released in v4.7.0. Should be on NPM shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants