Skip to content

feat(storage-resize-images): add Imagen upscaling #2342

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

Draft
wants to merge 1 commit into
base: next
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions storage-resize-images/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Version 0.2.9

feature - support upscaling images with Imagen3

fixed - run an npm audit and bump vulnerable dependencies

fixed - use Promise.allSettled to await various resizes
Expand Down
2 changes: 2 additions & 0 deletions storage-resize-images/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,5 @@ Leave this field empty if you do not want to store failed images in a separate d
This extension will operate with the following project IAM roles:

* storage.admin (Reason: Allows the extension to store resized images in Cloud Storage)

* aiplatform.user (Reason: Allows use of Imagen models to upscale images to higher resolution, if selected.)
6 changes: 5 additions & 1 deletion storage-resize-images/extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ apis:
roles:
- role: storage.admin
reason: Allows the extension to store resized images in Cloud Storage
- role: aiplatform.user
reason:
Allows use of Imagen models to upscale images to higher resolution, if
selected.

resources:
- name: generateResizedImage
Expand Down Expand Up @@ -99,7 +103,7 @@ params:
works](https://firebase.google.com/products/extensions/storage-resize-images).
type: string
example: "200x200"
validationRegex: ^\d+x(\d+,\d+x)*\d+$
validationRegex: ^(\d+x(\d+,\d+x)*\d+|x[24])$
validationErrorMessage:
Invalid sizes, must be a comma-separated list of WIDTHxHEIGHT values.
default: "200x200"
Expand Down
Loading
Loading