Lädt...

🔧 I have implemented a GPU version of Pica which is high quailty image resizer


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

🔗 GitHub Repo: https://github.com/gezilinll/pica-gpu
🔗 Demo: https://pica-gpu.gezilinll.com

Recently, while using Pica in a project, I noticed that both CPU and memory usage were quite high. When processing multiple images, the application would sometimes freeze or even crash. After reviewing the source code, I have to say that Pica's current CPU-based implementation is already optimized to an extreme level.

From what I observed, Pica's main optimization lies in its use of advanced filters for image scaling instead of conventional methods like nearest-neighbor interpolation (which prioritizes performance over quality). These filters have higher computational complexity but produce better results. Since filtering mainly controls how target pixels sample from the original image, and each pixel can be processed independently, this logic is inherently well-suited for GPU execution.

I have ported all of Pica's filtering algorithms to WebGL, creating a GPU-based version of Pica. In theory, using Compute Shaders could further improve performance, but since it requires WebGPU, which has compatibility concerns, I have not implemented that yet.

On the algorithm side, apart from mks2013, other filters theoretically support additional sharpening parameters. However, since our project primarily uses mks2013, which already provides excellent results, I haven't introduced sharpening logic to other filters yet—this is something I may improve in the future.

Currently, the GPU version of Pica achieves the same anti-moiré effect and sharpness as the original Pica while improving performance by 2-10×, with greater speedup for larger images. Additionally, because the GPU implementation avoids creating extra buffers, memory usage is lower. CPU load is also significantly reduced, which should help prevent performance bottlenecks.

Since Pica is designed as a CPU-based, JavaScript implementation, modifying it directly via a PR might be challenging for me. Instead, I have created a separate project.

I’d love for the community to collaborate on this! Any feedback or contributions would be greatly appreciated. Lastly, huge thanks to Pica for making our project possible! 😊

...

🔧 I have implemented a GPU version of Pica which is high quailty image resizer


📈 142.18 Punkte
🔧 Programmierung

🐧 imgp v2.8 - high-performance cli batch image resizer and rotator maintenance release


📈 34.72 Punkte
🐧 Linux Tipps

🐧 Batch image resizer imgp v2.6 is released!


📈 29.22 Punkte
🐧 Linux Tipps

🔧 Building an Image Resizer with Flask, React and Vite


📈 29.22 Punkte
🔧 Programmierung

🪟 Turn On or Off PowerToys Image Resizer in Windows 10 and Windows 11


📈 29.22 Punkte
🪟 Windows Tipps

📰 How to shrink your images with the PowerToys Image Resizer


📈 29.22 Punkte
📰 IT Nachrichten

🕵️ Medium CVE-2020-13458: Verbb Image resizer


📈 29.22 Punkte
🕵️ Sicherheitslücken

🕵️ Low CVE-2020-13459: Verbb Image resizer


📈 29.22 Punkte
🕵️ Sicherheitslücken

💾 Icecream Image Resizer 2.10 Deutsch


📈 29.22 Punkte
💾 Downloads

📰 Microsoft Image Resizer (PowerToys for Windows 10) Review


📈 29.22 Punkte
📰 IT Security Nachrichten

🪟 Image Resizer für Windows


📈 29.22 Punkte
🪟 Windows Tipps

💾 Light Image Resizer 6.0.1.0 Deutsch


📈 29.22 Punkte
💾 Downloads

🕵️ http://www.pica.army.mil/JML/ksa.jpg


📈 27.45 Punkte
🕵️ Hacking

🔧 Build AI Agent Connected to Unlimited APIs with Vercel's AI SDK & Pica's OneTool


📈 27.45 Punkte
🔧 Programmierung

🔧 Build AI Agent Connected to Unlimited APIs with Vercel's AI SDK & Pica's OneTool


📈 27.45 Punkte
🔧 Programmierung

📰 (中文) 拿捏!Flatpak难逃被 ll-pica 玲珑化的命运 | 新版内测


📈 27.45 Punkte
🐧 Unix Server

💾 Pica Pic 1.0 Englisch


📈 27.45 Punkte
💾 Downloads

📰 Word: Zeilenlineal auf Zoll, Punkt oder Pica umschalten


📈 27.45 Punkte
🤖 Android Tipps

⚠️ WordPress PICA Photo Gallery 1.0 SQL Injection


📈 27.45 Punkte
⚠️ PoC

🕵️ http://www.pica.army.mil/JML/ksa.jpg


📈 27.45 Punkte
🕵️ Hacking

🎥 Low-level RASP: Protecting Applications Implemented in High-level Programming Languages


📈 23.36 Punkte
🎥 IT Security Video

📰 FastStone Photo Resizer


📈 23.35 Punkte
📰 IT Nachrichten

📰 Avidemux 2.6.16 Open-Source Video Editor Supports FFmpeg 3.0.5, Adds Resizer


📈 23.35 Punkte
📰 IT Security Nachrichten

📰 Ubuntu MATE 16.04.1 LTS Fixes the Raspberry Pi Partition Resizer, Adds MATE 1.14


📈 23.35 Punkte
📰 IT Nachrichten

📰 Avidemux 2.6.16 Open-Source Video Editor Supports FFmpeg 3.0.5, Adds Resizer


📈 23.35 Punkte
📰 IT Security Nachrichten

📰 Ubuntu MATE 16.04.1 LTS Fixes the Raspberry Pi Partition Resizer, Adds MATE 1.14


📈 23.35 Punkte
📰 IT Nachrichten

matomo