Skip to content

feat: new Output Type URL#26

Merged
not-lain merged 5 commits intonot-lain:mainfrom
KingNish24:patch-2
Jul 22, 2025
Merged

feat: new Output Type URL#26
not-lain merged 5 commits intonot-lain:mainfrom
KingNish24:patch-2

Conversation

@KingNish24
Copy link
Contributor

Added new Output Type URL

KingNish24 and others added 2 commits June 26, 2025 17:26
Copy link
Owner

@not-lain not-lain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks a lot for working on this 🙌

Comment on lines +80 to +85
with BytesIO() as buffer:
img_format = img.format or "PNG"
img.save(buffer, format=img_format)
buffer.seek(0)

file_name = original_name or f"{uuid.uuid4()}.{img_format.lower()}"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this section is very similar to the base64 implementation, do you think we should implement the DRY principle here or we should leave it like this for easier access.

@not-lain not-lain merged commit 507df96 into not-lain:main Jul 22, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants