-
Notifications
You must be signed in to change notification settings - Fork 132
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
Update image handling and add image processing options #706
Conversation
…or image processing
You can automatically remove uniform color on the edges of the image. | ||
|
||
```js "autoCrop" | ||
defImages(img, { autoCrop: true }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The defImages
function call is missing the img
argument in the example code snippet.
generated by pr-docs-review-commit
missing_argument
The changes in this pull request include:
I do not see any functional issues with these changes, and they seem to make the code cleaner and easier to maintain. The new image processing function adds capabilities for working with images that were not previously available. Therefore, my response is "LGTM 🚀".
|
This pull request includes several commits that improve the image handling and processing capabilities of the software. The commits update the image handling for buffers and blobs, add the "jimp" dependency for image processing, refactor the image options and clean up imports for image processing functions, and refactor the image processing and resolution functions for clarity and efficiency. Additionally, the commits add detail, scaling, and auto-cropping options to the images documentation. These changes enhance the software's ability to handle and process images, providing more flexibility and control to the users.
defImages
function inimages.md
. This introduced several options for image manipulation likedetail
,scaling
, andauto cropping
.jimp
package in bothcore
andcli
to handle image manipulation such as resize and auto-crop 💻.file.ts
andrunpromptcontext.ts
in thecore
package to support the image manipulation features usingjimp
package 🖼️.image.ts
was introduced in thecore
package, which includes the implementation of theimageEncodeForLLM
function usingjimp
for image manipulation 🖌️.prompt_template.d.ts
is updated to includemaxWidth
,maxHeight
, andautoCrop
relating to image manipulation options underDefImagesOptions
🧑💻.describe-image.genai.js
in thesample
package was updated to use new image manipulation features ofdefImages
function 🎨.