feat: add image URL input support#18
Merged
Merged
Conversation
Contributor
|
Hey @Harsh-2005d, this is your second contribution and I really appreciate it! I spend most of my time on model development, so having contributors like you take care of the product side means a lot. The feature itself looks great, URL input support is something users have been asking for. There are just some merge conflicts with git fetch upstream
git checkout feat/url-input
git rebase upstream/main
# resolve any conflicts, then:
git push --force-with-lease origin feat/url-inputIf you haven't set git remote add upstream https://github.com/withoutbg/withoutbg.gitLet me know if you run into any trouble, happy to help! |
- accept image_url form field in /api/remove-background endpoint - fetch and validate remote images via httpx with size/type guards - add removeBackgroundFromUrl helper in api.js - add Upload/URL tab toggle in RemoveBackground component - fix mypy type annotations and ruff line length errors Signed-off-by: Harsh Dahiya <dahiyaharsh2005@gmail.com>
03e57e6 to
091a52a
Compare
kocabiyik
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds support for processing images via URL, so users no longer need to download an image before removing its background. This includes backend endpoint changes, a new API helper, and a UI toggle between file upload and URL input.
Type of Change
feat- New feature (MINOR version bump)style- Code style/formatting (no version bump)Breaking Changes
The
/api/remove-backgroundendpoint is fully backward compatible —fileupload still works as before.image_urlis an additional optional field.Checklist
Related Issues
Closes #6
Testing
docker run -p 8000:8000 web-backend:latesthttps://example.com/photo.jpg) and click ProcessTo test the backend directly:
Screenshots (if applicable)
📝 Note: When this PR is merged to
main, an automated release will be triggered based on your commit messages.See AUTOMATED_RELEASES.md for details on how versioning works.