Bulk edit with gradient - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: Bulk edit with gradient (/Thread-Bulk-edit-with-gradient) |
Bulk edit with gradient - djdstroy - 09-28-2021 Hi guys, im trying to edit a number of images all at once.... the images are of faces with plain coloured backgrounds. i have been using the batch image manipulation tool for bucket fill to change the colours of the image background .... which works great. i can do 100's at once which takes minutes.... but not i want to do the same thing, but using 2 colours and the gradient tool. i can do this manually one at a time, step by step: open the image > choose the fuzzy select tool > click and select the background area of the image > choose the gradient tool > then with the gradient tool, i will select the x and y points of my gradient on to the image> once the gradient has successfully coloured the background i will then click to export the image, and save it as a png file in to my new folder location sorry if this has been discussed before, I have added a before and after example thanks for your time. RE: Bulk edit with gradient - rich2005 - 09-28-2021 No answer, but just to set the scene. How many of these do you have to process ? RE: Bulk edit with gradient - djdstroy - 09-28-2021 (09-28-2021, 08:49 AM)rich2005 Wrote: No answer, but just to set the scene. How many of these do you have to process ? around 10,000 of them. iv been doing them in batches of 100 up to now RE: Bulk edit with gradient - Ofnuts - 09-28-2021 IMHO, assuming all the image have the same size, a much better way, to summarize: 1) make you images "heads with transparent background" (more on that later) 2) Create the gradient image 3) Overlay each of your image on the gradient, or add the gradient behind each. Step #1
[attachment=6769]
Step #3
[attachment=6770]
The only downside of this method is that if your files have random names the naming scheme is lost, but if they have a sequence number, ofn-tiles can re-generate it when saving. But in the whole it could be best for you to handle these images as "sprite sheets", and only export final versions as individual images. RE: Bulk edit with gradient - rich2005 - 09-28-2021 Another way First removing a background. I use a quick-n-dirty plugin isolate.py (attached, unzip, put in your plug-ins folder). Try it out on some representative images, if it works, great, if not then back to the drawing board. The usual Gimp batch plugin BIMP is no good for these operations, fortunately there is a new one here: https://www.gimpscripts.net/2021/09/gimp-batch.html There are examples on that page and links to further discussions, do follow them up. However, all being well, it might go like this 4 minutes duration: https://youtu.be/JNKpDGFVnm8 This the command used in the batch plugin Code: pdb.python_fu_isolate(image,layer) RE: Bulk edit with gradient - djdstroy - 09-28-2021 thats fantastic guys. you made the impossible seem reachable now...... that's given me something to play with... thank you so much for your help. |