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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for jpeg images and custom quality #30

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

transitive-bullshit
Copy link
Contributor

@transitive-bullshit transitive-bullshit commented Apr 5, 2022

Hey 馃憢 this project is great.

The only change I needed to make was that the output png images are really large, and for most social images, jpeg will be a better option.

Here's an example:

js
(png; 217KB)

js2
(jpeg with 75% quality; 44KB)

This is for my next.js starter kit: https://github.com/transitive-bullshit/nextjs-notion-starter-kit

@neg4n neg4n added enhancement New feature or request internal Related to internals of the library api Related to library's api labels Apr 5, 2022
@neg4n
Copy link
Owner

neg4n commented Apr 5, 2022

Hey @transitive-bullshit, thanks for implementing it 馃殌
I'll merge this and release new version of the library, then I'll take care of documenting these changes.

@neg4n neg4n merged commit 182be46 into neg4n:main Apr 5, 2022
@neg4n
Copy link
Owner

neg4n commented Apr 5, 2022

https://github.com/neg4n/next-api-og-image/releases/tag/2.2.1

@transitive-bullshit
Copy link
Contributor Author

Thanks @neg4n 馃挭

This'll get merged in soon transitive-bullshit/nextjs-notion-starter-kit#256

@transitive-bullshit transitive-bullshit deleted the feature/image-type-support branch April 5, 2022 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to library's api enhancement New feature or request internal Related to internals of the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants