Devam Ediyor

Script to programmatically remove white background from images

Hello,

This project consists of creating a script (PHP?) that I can run on a standard Linux/Ubuntu server that programmatically removes the white background(s) from PNG/JPG images, making the white background become transparent, then saving the new image as a PNG file with transparency and trimmed to reduce file size.

There appears to be a few ways to achieve this, for example:

1) [url removed, login to view]

2) [url removed, login to view]

As I have thousands of images to process, I would like the script to have a config file where I can input basic settings necessary for the script to run smoothly. For example one required setting is to tell the script the location of the directory containing the images to process. Another configuration variable is telling the script where to save the new images to.

Attached is a sample of the images I will use this script on. The script must remove the white backgrounds from the "frames" (inside and around) and product images, and render them transparent. Please note some are intricate like "frame-3.jpg."

Finally, the script should also resize (trim) the new image removing wasted space, which will occur a lot in the product images.

Specifically see these attached reference images (before and after samples) of what the script should achieve:

1) [url removed, login to view] and 1_output_transp...

2) [url removed, login to view] and 890-output-tran...

Ask any questions. Thanks.

Beceriler: Görüntüleme, Javascript, PHP

Daha fazlasını görün: php reduce image file size script, resize image background, background samples, ubuntu imagemagick, imagemagick ubuntu, white background, resize-the-images, render 9 images for a new product, remove white background, remove the background, remove image background, remove backgrounds, remove background from, product render, Product background remove, image masking, background remove images, background from images, php transparent png, programmatically, php imagemagick remove background, input ubuntu, basic ubuntu server, background process, imagemagick remove background

İşveren Hakkında:
( 75 değerlendirme ) Melbourne, Australia

Proje NO: #6710421