-
-
Notifications
You must be signed in to change notification settings - Fork 755
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
Monorepo #547
Monorepo #547
Conversation
fdc381a
to
84c7265
Compare
4a92845
to
8236c41
Compare
Ok, indeed it makes no sense to split encoder/decoder if the underlying libraries do not split them. Let me know when you've finished the new packages you've talked about |
@edi9999 all packages finished. once this is merged I'll make issues to document things a little more and get to work |
I’m going to merge in the next 24 hours. The tiff library is giving us a bunch of problems and this will help users be able to exclude that particular file type from their jimp |
Sorry for the late reply, I'm ok to merge too ! |
What's Changing and Why
Breaks jimp up into a set of many packages. Great news is this doesn't break the API at all!
Types - plugins that enable encoding/decoding for a format:
@jimp/type-png
@jimp/type-jpeg
@jimp/type-bmp
@jimp/type-tiff
@jimp/type-gif
Motiviation:
Plugins - plugins that enable encoding/decoding for a format:
@jimp/plugin-resize
@jimp/plugin-rotate
@jimp/plugin-crop
@jimp/plugin-blit
Motiviation:
Other Packages
@jimp/core
- all the code you know and love from current jimp@jimp/custom
- an API to customize a jimp configurationjimp
- a customized jimp with all the current types and functionsTodo
Make all functions into packages that are also plugins. This will enable people to write plugins for jimp (like
circle
or any other custom bitmap manipulation). It will also enable configuring a jimp the only does certain things.What else might be affected
Everything has been moved around so everthing
@edi9999 Input?
Tasks
jimp.d.ts