Skip to main content

Resize WebP Tool v2.0

Tool chuyển đổi và xử lý ảnh hàng loạt với tính năng đính logo + watermark.

Tính năng

Xử lý ảnh cơ bản

  • Resize ảnh: Chính xác theo kích thước, hoặc theo cạnh lớn nhất, hoặc giữ nguyên
  • Chuyển đổi format: WebP, JPEG, PNG
  • Crop ảnh: Cắt viền theo % trước khi resize
  • Xóa nền: Tích hợp rembg với 2 model (u2net, silueta)
  • Điều chỉnh chất lượng: 1-100%

Logo & Watermark

  • Logo ảnh:

    • 3 chế độ kích thước: px cố định, % theo width, % theo cạnh max
    • 9 vị trí đặt logo
    • Điều chỉnh opacity, padding
  • Text watermark:

    • Điều chỉnh font size, opacity, padding
    • 9 vị trí đặt text
    • Rotation: Xoay text 0-360°
    • Tiling: Lặp text watermark trên toàn bộ ảnh
  • Preview realtime: Xem trước logo + watermark trước khi xử lý

UI/UX

  • Giao diện 3 cột: Danh sách file | Preview + Controls | Logo + Watermark
  • Preview tự động scale theo kích thước cửa sổ
  • Xóa file đã chọn khỏi danh sách
  • Lưu cấu hình tự động

Yêu cầu hệ thống

  • Python: 3.8 trở lên
  • Hệ điều hành: Windows, macOS, Linux
  • RAM: Tối thiểu 2GB (khuyến nghị 4GB+ cho xử lý ảnh lớn)

Cài đặt nhanh

Yêu cầu: Python 3.8+ đã cài sẵn.

pip install resize-image-webp
resize-webp

Cài từ source

git clone https://github.com/tnguyenbk/resize-image-webp.git
cd resize-image-webp
pip install .
resize-webp

Bật tính năng xóa nền (tùy chọn)

# CPU only (nhẹ, phù hợp đa số máy)
pip install "resize-image-webp[cpu]"

# Hoặc GPU (nhanh hơn, cần NVIDIA GPU + CUDA)
pip install "resize-image-webp[gpu]"

Hướng dẫn sử dụng

1. Thêm ảnh

  • Click "Thêm ảnh" để chọn file
  • Hoặc "Thêm folder" để chọn toàn bộ thư mục
  • Click "Xóa selected" để xóa file đã chọn
  • Click "Clear" để xóa toàn bộ danh sách

2. Chọn folder output

  • Bỏ tick "Cùng folder input" nếu muốn chọn folder output khác
  • Click "Chọn..." để chọn thư mục đích

3. Cài đặt kích thước

  • Chính xác: Resize đúng kích thước width x height
  • Max cạnh lớn nhất: Giữ tỷ lệ, resize sao cho cạnh lớn nhất = giá trị max
  • Giữ nguyên: Không resize, chỉ chuyển đổi format hoặc đính watermark

4. Cài đặt logo (tùy chọn)

  1. Tick "Logo ảnh"
  2. Click "Chọn..." để chọn file logo (PNG có nền trong suốt)
  3. Chọn chế độ size:
    • px cố định: Kích thước logo cố định (10-500px)
    • % theo width: Logo = % của chiều rộng ảnh (5-80%)
    • % theo cạnh max: Logo = % của cạnh lớn nhất (5-80%)
  4. Điều chỉnh vị trí, opacity, padding

5. Cài đặt text watermark (tùy chọn)

  1. Tick "Text watermark"
  2. Nhập text vào ô "Text:"
  3. Điều chỉnh font size, vị trí, opacity, padding
  4. Rotation: Xoay text (0-360°)
    • 0° = ngang
    • 45° = chéo (phổ biến chống trộm ảnh)
    • 90° = dọc
  5. Tiling: Tick để lặp text trên toàn bộ ảnh (bỏ qua vị trí)

6. Preview

  • Click vào ảnh trong danh sách để xem preview
  • Preview hiển thị logo + watermark realtime
  • Kéo thay đổi kích thước cửa sổ → preview tự động scale

7. Chuyển đổi

Click "Convert" để bắt đầu xử lý hàng loạt

Format hỗ trợ

Input: JPG, JPEG, PNG, WebP, BMP, TIFF, GIF Output: WebP, JPEG, PNG

Cấu hình

Cấu hình được lưu tự động tại resize-webp-config.json

Troubleshooting

Lỗi "rembg không khả dụng"

  • Chạy: pip install rembg[cpu] hoặc pip install rembg[gpu]
  • Khởi động lại ứng dụng

Preview không hiển thị

  • Kiểm tra file ảnh có hợp lệ không
  • Thử chọn ảnh khác trong danh sách

Text watermark bị cắt

  • Tăng padding (ô "Padding" trong Text Watermark section)
  • Font size lớn cần padding lớn hơn

Logo quá to/nhỏ

  • Đổi chế độ size (px / % theo width / % theo cạnh max)
  • Điều chỉnh slider tương ứng

License

MIT License - Tự do sử dụng cho mục đích cá nhân và thương mại.

Version History

v2.0 (2026-02-11)

  • Thêm tính năng đính logo + watermark hoàn chỉnh
  • UI 3 cột mới
  • Logo: 3 chế độ size (px, % width, % max edge)
  • Text watermark: Rotation + Tiling
  • Preview realtime cho watermark
  • Export format selector (WebP/JPEG/PNG)
  • Chế độ "Giữ nguyên" không resize
  • Xóa file đã chọn

v1.0 (2025)

  • Resize và chuyển đổi ảnh cơ bản
  • Crop, xóa nền, điều chỉnh chất lượng

Metadata

Release files for resize-image-webp 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for resize-image-webp 2.0.0
File Size Uploaded Provenance Actions
resize_image_webp-2.0.0.tar.gz 15.5 kB Without provenance Details for resize_image_webp-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for resize-image-webp 2.0.0
File Interpreter ABI Platform Actions
resize_image_webp-2.0.0-py3-none-any.whl Python 3 none any Details for resize_image_webp-2.0.0-py3-none-any.whl

Total release size: 30.8 kB

Release files / resize_image_webp-2.0.0.tar.gz

Download URL resize_image_webp-2.0.0.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1c1c30b03f76ffb3a5e602a0ab0dd77092557cef025e27453c2227cf424bf2c4
BLAKE2b-256 checksum
How to use checksums
8cbc75e70cb93545804173b33bcd0d85f1009cc217b6bfb35423c8ff7348ff84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / resize_image_webp-2.0.0-py3-none-any.whl

Download URL resize_image_webp-2.0.0-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2122fb85c2b30b39e6fd5d8c7c80a157913b4a77f2009f6c9df9a1a7f4ff49cd
BLAKE2b-256 checksum
How to use checksums
9c0c8776f1103d8ae31b2f621e57c5c6eb30436816782b372fbd5ccea5a4c219
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for resize-image-webp 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page