alessandrofrancesconi / gimp-plugin-bimp Goto Github PK
View Code? Open in Web Editor NEWBIMP. Batch Image Manipulation Plugin for GIMP.
Home Page: http://www.alessandrofrancesconi.it/projects/bimp
License: Other
BIMP. Batch Image Manipulation Plugin for GIMP.
Home Page: http://www.alessandrofrancesconi.it/projects/bimp
License: Other
Got a request about a "Save settings" feature, that lets the user to save the state of the manipulations for subsequent uses.
Was a bit bored today, so decided to fixup the Makefile a bit:
https://gist.github.com/4668160
It now uses --dry-run when running gimptool-2.0 (so that files aren't installed multiple times), it defaults to installing the plugin in the system directory (old behavior still available), and adds a simple test for gimptool-2.0/pcre-config, otherwise gcc is called without flags and lots of unrelated errors are spewed, masking the real error.
Hi,
In using Other GIMP procedure -> gimp-levels, the Gamma correction factor input is set to a floor of 1.0, when it should be 0.1.
Thanks.
Ability for the user to stop the whole batch process
I use OpenSUSE and am having problems finding the "dev" packages needed for "make" to work. Can you point me to anywhere to find either .rpm versions or source?
I have been unable to install any .deb packages that I have found. I do have the "deb" package installed, but I get identical errors with both the libgimp and libpcre3 packages:
./libpcre3-dev_8.30-5_amd64.deb: line 1: syntax error near unexpected token newline' ./libpcre3-dev_8.30-5_amd64.deb: line 1:
!'
I have used a "batch process" command in Paintshop Pro for many years and find it to be one of the most useful tools I have seen.
Installing bimp into Gimp in Win XP worked perfectly. Installing under OpenSUSE is proving to be more of a challenge.
In future, it might be a good idea to support multiple languages
Hello
Thanks a lot, thank you very much for this function !
But, i have 200 folders for example with 10 images on each.
When i use the add folder button and i APPLY, all images are in ONE output folders, how can we do to have the same order, the same 200 folders with 10 modified images on it ? (not all images in one folder output)
Thanks you!
Isabelle
Hi there, this issue is very similar to the one in this closed thread:
#17
I use GIMP 2.8.3 in MacOS (Lion). It comes with BIMP 0.4. unfortunately I have not found a way to compile the latest version on a Mac to plug into GIMP.
The problem is that when I attempt to use BIMP I can add any manipulations I like but I cannot add any image files.
When i do a search ( of the entire disk) for .png through the BIMP / GIMP finder it will find .m .h .zip . xml and whole lot of other types.
However, No png or any supported image files will be listed, regardless of size, compression etc.
I also cannot drag any image files into the file selection.
Thanks for your help!
I am unable to compile the plugin. I have the correct libs installed (afaik). Im running Ubuntu 13.04. Terminal output is below:
skee@ubuntu:/bimp$ make/bimp$
which gimptool-2.0 && which pcre-config &&
gcc -o ./bin/bimp -Wall -O2 -Wno-unused-variable -Wno-pointer-sign -Wno-parentheses src/.c src/manipulation-gui/.c -pthread -I/usr/include/gtk-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/harfbuzz -I/usr/include/gimp-2.0 -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lpcre -DGIMP_DISABLE_DEPRECATED
/usr/bin/gimptool-2.0
/usr/bin/pcre-config
src/bimp-gui.c: In function ‘bimp_show_error_dialog’:
src/bimp-gui.c:943:2: warning: format not a string literal and no format arguments [-Wformat-security]
src/bimp-manipulations-gui.c: In function ‘bimp_open_editwindow’:
src/bimp-manipulations-gui.c:53:8: warning: assignment from incompatible pointer type [enabled by default]
src/bimp-manipulations-gui.c:58:8: warning: assignment from incompatible pointer type [enabled by default]
src/bimp-manipulations-gui.c:63:8: warning: assignment from incompatible pointer type [enabled by default]
src/bimp-manipulations-gui.c:68:8: warning: assignment from incompatible pointer type [enabled by default]
src/bimp-manipulations-gui.c:73:8: warning: assignment from incompatible pointer type [enabled by default]
src/bimp-manipulations-gui.c:78:8: warning: assignment from incompatible pointer type [enabled by default]
src/bimp-manipulations-gui.c:83:8: warning: assignment from incompatible pointer type [enabled by default]
src/bimp-manipulations-gui.c:88:8: warning: assignment from incompatible pointer type [enabled by default]
src/bimp-manipulations-gui.c:93:8: warning: assignment from incompatible pointer type [enabled by default]
src/bimp.c: In function ‘get_bimp_localedir’:
src/bimp.c:274:10: warning: ignoring return value of ‘readlink’, declared with attribute warn_unused_result [-Wunused-result]
/usr/bin/ld: /tmp/ccfFiZ3O.o: undefined reference to symbol 'roundf@@GLIBC_2.2.5'
/usr/bin/ld: note: 'roundf@@GLIBC_2.2.5' is defined in DSO /lib/x86_64-linux-gnu/libm.so.6 so try adding it to the linker command line
/lib/x86_64-linux-gnu/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [make] Error 1
skee@ubuntu:
I tried clicking "Desktop" as output folder from the dropdown, and the files were saved in the folder I started gimp from. But when I browse folders with the file picker and select my (localised) desktop folder ~/Skrivebord, it works correctly.
I am on Windows XP SP3 running GIMP 2.6.11 and BIMP 0.6. When I start BIMP, I can see jpg and gif images in the file system browser, but not PNG. I can see PNG files in the "Recently Used" utility. As a workaround, I am able to clear the "Recent" files feature of GIMP, open up to 50 files at once, then use BIMP and add all files from Recently Used and process them successfully, but since I have several hundred small icons to process at once, that's a nuisance. Any suggestions?
It seems there is a bug in sizing window in BIMP-0.8 for GIMP-2.8!
Here is an example , taken in the resizing manipulation includes with BIMP, of what it's about:
http://i48.tinypic.com/kcfrxj.jpg
Been observed in Fedora 17 (the 'kcfrxj.jpg') and Windows 7 but with different proportion in the overlap between buttons and the rest.
Multilanguage support is a good thing for me.
Thanks.
Let's say that you want to set the brightness of a set of pictures and you want to see it applying it. In the current software there is a preview function, but it is a little bit tedious to use. On this case you will have to:
I think it would be better if you could see this while adjusting the brightness value, like this:
The changes will be visible automatically on the preview window.
This feature would be nice for all other modifications, ie: Flip or rotate, Sharp or blur, Watermark.
Best regards
Josef
I tried "plug-in-colortoalpha" with BIMP, and it didn't work... It outputs the same image, probably because it doesn't do the equivalent of right-click, add alpha channel to layer.
Why not add this operation wherever the procedure name includes "alpha"?
Great plugin really handy to automatize .
I would like ,when creating bimp command a new option, to allow to run one (or more but seldom would be need for more then 1) of the chained element in interactive mode .
Let me explain better with a practical example of usage :
suppose i have a series of photos to scale down, denoise ,and frame
so the command will include
resize
gmic> anisotropic Smoothing
gmic> frame
,
if i may call Gmic>Frame with user defined values but in interactive mode i may define a frame with good for all the images in the batch , but be able to change 1 of the Gmic-Frame filter , the text of the TITLE
..no quickly as in a full automatic process but much quicker then manually
just a random example, but i hope useful to clear.what i intend
again when i wrote about call in interactive mode i intend with the user values to be indicate in the BIMP command , not with the filter default ;
the utility of the interactive mode to allow to fine tune or modify a single value
(as , in my example the titles of a series of artwork,to frame )
Do you think possible in a future version a similar feature ?
PS english is not my native language and your name look as a Italian name .
se non sono stato chiaro posso riprovarci in italiano.
PhotoComix
Gimp Error Message reads:
"Calling error for procedure 'script-fu-addborder':
Procedure 'script-fu-addborder' has been called with value '' for argument 'color' (#6, type GimpRGB). This value is out of range."
BIMP Save Set File:
#BIMP 1.0
#MANIPULATION SET DEFINITION
[RESIZE]
new_w_pc=100
new_h_pc=100
new_w_px=965
new_h_px=1460
resize_mode=1
aspect_ratio=true
interpolation=1
change_res=true
new_res_x=72
new_res_y=72
[USERDEF0]
procedure=script-fu-addborder
num_params=7
PARAM0=1
PARAM1=NOT_USED
PARAM2=NOT_USED
PARAM3=30
PARAM4=30
PARAM5=#ffffffffffff
PARAM6=0
[WATERMARK]
mode=false
text=
font=Sans 16px
color=#000000000000
image_file=I:\\All Done Spill over\\black 1 inch template.png
opacity=100
position=2
[RENAME]
pattern=$$D
[CHANGEFORMAT]
format=3
quality=100
smoothing=0
entropy=true
progressive=false
comment=
subsampling=3
baseline=true
markers=0
dct=1
I load the set and try to process images but this error happens causing the entire list of images to fail. To fix All I need to do is go into this step and then choose the color again.
Some other specs Windows XP SP3 , GIMP 2.8.4 no other mods, addons, or scripts.
Hello
This plugin if PERFECT for me but i have 568 folders with 30 images each on it, how can i do ?
This plugin is just for images, not a lot of folders ?
Thanks!!
Isabelle
I would like to use the BIMP plugin to overlay my (hundreds of!) images in the following way. My images are named in this fashion:
Blah blah 1 - A.tif
Blah blah 1 - B.tif
Blah blah 2 - A.tif
Blah blah 2 - B.tif
Blah blah 3 - A.tif
Blah blah 3 - B.tif
I would like to create the files:
Blah blah 1 - C.tif
Blah blah 2 - C.tif
Blah blah 3 - C.tif
by overlaying image A on B using the 'Divide' image option.
The BIMP plugin is utilised via File > Batch Image Manipulation. Then, in the 'Manipulation Set' section, I click 'Add' and select 'Other GIMP procedure'. None of the many procedures contain the string 'overlay' or 'divide'. Can I procede with BIMP or doesn't it do what I'd like to do? Would writing a Fu-Script be trivial (I've never programmed a computer before, apart from once when I made a turtle move around a screen in some laughable school IT exercise).
Thanks a batch.
bimp-operate needs a strong error handling system. At this time, manipulations return a boolean variable 'success' that isn't considered on the global scope of the program.
If an image file has no extension (just "image" or other dummy name) bimp segfaults.
Output:
BIMP - Batch Manipulation Plugin
Start batch processing...
Working on file #1: image (/home/user/image)
Image ID is 1
Drawable ID is 3
Applying RESIZE...
/home/user/.gimp-2.8/plug-ins/bimp: fatal error: Segmentation fault
I just discovered your BIMP plugin today and am very impressed -- thank
you for your work creating something so useful!
I am receiving an error that I wanted to ask about, however. I may be
doing something wrong. I am trying to convert a batch of full-color
images to indexed images with a web palette. I selected "Other GIMP
procedure", the gimp-image-convert-indexed command, and set the
parameters. But when I run it I get an error:
"Calling error for procedure 'gimp-image-convert-indexed': Procedure
'gimp-image-convert-indexed' has been called with value '1' for argument
'palette-type' (#3, type GimpConvertPaletteType). This value is out of
range."
As I look at the properties, it appears that maybe the value of
WEB-PALETTE should be 2 rather than 1. Is this something I can change,
or is there another way I should do it?
I am using GIMP 2.8.0 on Windows 7.
BIMP gui has already some space to host a "Gimp Preview" widget. When user clicks on a previously added image file, this box is updated with a small preview.
Results of the selected manipulations set could be checked by clicking on a particular image of the list (using a modal dialog).
The problem with the above mentioned GIMP procedure is that using BIMP its impossible to alter color balance for multiple ranges at the same time. So for example we can't change the color balance for both Shadows and Midtones ranges at the same time just like we can using GIMP. Of course we can do separate alterations for one after the other, but it's result will be different.
Another cool enhancement for this dialog: When retrieving a procedure's param description, check if it contains a substring in the format "{ OPTION1 (ID1), OPTION2 (ID2),... , OPTIONn (IDn) }".
In this case, the dedicated GTK widget on the left will be a GtkComboBox with those ids and values names.
(from Gimp Plugin repository)
I just wanted to report a bug that causes BIMP to use the wrong subsampling setting when converting to jpg.
After much trial-and-error, I am certain that this is, "what Bimp setting corresponds to which Gimp setting":
1x1, 1x1, 1x1 (Quality) = 4:2:0 (chroma quartered)
2x1, 1x1, 1x1 (4:2:2) = 4:2:2 horizontal (chroma halved)
1x2, 1x1, 1x1 = 4:4:4 (Best quality)
2x2, 1x1, 1x1 (Small size) = 4:2:2 vertical (chroma halved)
As you can see, severe quality loss can happen if one is not aware of the bug.
There is a Yes, don't ask again, but no "No, don't ask again" to cancel operation.
Hello
Thanks for your awesome work. You might want to add a note on your website for Mac users: there's no need to install or compile BIMP on Mac, because the default native build of GIMP for Mac OSX 10.8 made by Simone from http://gimp.lisanet.de/Website/Download.html already includes BIMP! That's very cool, but it took me some time to figure it out.
Cheers.
The current, standard, GIMP browser shows all the installed procedures, but a big amount of them can't be used into "Other GIMP procedure" dialog.
The idea is to create a similar, simpler, browser that shows only those that actually can be used into BIMP (filtering them with gimp_procedural_db_query()).
Some people are asking for a .deb installer. Is there anyone who can maintain it?
Sent by Dawid Nitka:
Hi there,
Is it possible to add to image conversion this one plugin (conversion to dds):
https://code.google.com/p/gimp-dds/
It would be really great :)
I've just started using bimp and it's great! Finally I've got a tool for using refocus when resizing my pictures for web sizes.
However, I'm having an issue with a script-fu plugin I use, watermark. Whenever I add it to bimp's list of actions, bimp gets killed. I have other alternatives but this should be investigated, as I don't know if it's just an issue with watermark or with script-fu in general.
The Preview window could provide before/after information such:
I was hoping to use this plugin to add curves, but I see curves are not in the GUI methods, nor do I find any likely method in "Other GIMP procedure".
Can we please get a curve GUI? E.g. select a curve from either a file or one of the user-saved presets. Doesn't have to be more than that (actually creating the curves while in BIMP doesn't seem useful).
Add Watermark's inner widgets can be placed better. In particular, I'm looking for a better way to display watermark position buttons (they are too big)
Hi,
I was trying to compile bimp under Fedora 18, but can't get past this error. I tried export LDFLAGS="$LDFLAGS -lm"
(which is mentioned in several discussions about this error), but it doesn't help either.
$ make which gimptool-2.0 && which pcre-config && \ gcc -o ./bin/bimp -Wall -O2 -Wno-unused-variable -Wno-pointer-sign -Wno-parentheses src/*.c src/manipulation-gui/*.c -pthread -I/usr/include/gimp-2.0 -I/usr/include/gtk-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libpng15 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lpcre -DGIMP_DISABLE_DEPRECATED /usr/bin/gimptool-2.0 /usr/bin/pcre-config src/bimp-manipulations-gui.c: In function ‘bimp_open_editwindow’: src/bimp-manipulations-gui.c:53:8: warning: assignment from incompatible pointer type [enabled by default] src/bimp-manipulations-gui.c:58:8: warning: assignment from incompatible pointer type [enabled by default] src/bimp-manipulations-gui.c:63:8: warning: assignment from incompatible pointer type [enabled by default] src/bimp-manipulations-gui.c:68:8: warning: assignment from incompatible pointer type [enabled by default] src/bimp-manipulations-gui.c:73:8: warning: assignment from incompatible pointer type [enabled by default] src/bimp-manipulations-gui.c:78:8: warning: assignment from incompatible pointer type [enabled by default] src/bimp-manipulations-gui.c:83:8: warning: assignment from incompatible pointer type [enabled by default] src/bimp-manipulations-gui.c:88:8: warning: assignment from incompatible pointer type [enabled by default] src/bimp-manipulations-gui.c:93:8: warning: assignment from incompatible pointer type [enabled by default] /usr/bin/ld: /tmp/ccjJdXom.o: undefined reference to symbol 'roundf@@GLIBC_2.2.5' /usr/bin/ld: note: 'roundf@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line /lib64/libm.so.6: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make: *** [make] Error 1
Using a linux compliled BIMP 0.9 / LinuxMint (and PCLOS) / Gimp 2.8.2
For an 'other gimp procedure' and using unsharpmask the minimum value that can be entered for radius is 2.0
Using the regular Gimp dialog values can be less than 1.0
The same applies to a linux compiled version of unsharpmask2
I have not confirmed this in windows only linux but have information that the same occurs in win.
This does not happen in BIMP 0.5 which I am still using in PCLOS
Several parameters for each output format are fixed and can't be modified (like subsampling option number for JPEG or chunks fields for PNGs).
Need to add them into the Change Format dialog for a full user customization.
Just found a small bug in the windows version (2012-09-04)
Using Other Gimp procedure>>gimp-colorize, you can't enter negative values in the Lightness field. Stops at zero.
Thank you for a great plug-in!
Received by mail:
When I add whole folders to edit them, the files are not sorted. I can not find any way to sort them in a particular order. This is especially bad for tools like renaming files, because renaming them like "file1.dat", "file2.dat", "file3.dat"...etc. would change the original order, so that the new filenames do not make any sense.
Must work on frequent crashes that appears when "Custom GIMP procedure" windows gets updated or is on closing under Windows. It can be a problem related to old GTK libraries (2.16) that are installed with gimp-win version.
Linux version, that uses GTK 2.26 libs instead, works perfectly.
In the mac os version, I cannot select XCF images. Do I miss something?
I would request to support XCF as input format.
Thanks for this nice job anyway,
J.
Hi
In other batch manipulation software you can set the "Preserve aspect ratio" when giving an exact size. For example, let's say you want your images to fit inside a 800x600 pixel square, but resize them proportionally. So, if you have an image with the size: 2112x2816 it will be resized to: 450x600. There would be cases where the image will be resized to 800x450 for example.
Best regards
Josef
Must investigate on why BIMP produces low-quality jpeg when adding a (text?) Watermark only.
Hello,
I've downloaded latest bimp (1.3) and compiled without problems in FC18 x86_64. I can even create, save and load a set of operations I want to perform on a group of images. However, when I try to select the destination folder for the images bimp segfaults. Here's gimp output:
(bimp:20300): Gtk-CRITICAL **: gtk_tree_model_filter_get_value: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
(bimp:20300): GLib-GObject-WARNING **: gtype.c:4204: type id `0' is invalid
(bimp:20300): GLib-GObject-WARNING **: can't peek value table for type `' which is not currently referenced
/home/pfessel/.gimp-2.8/plug-ins/bimp: fatal error: Segmentation fault
Information about FC18's current gimp version is available in http://koji.fedoraproject.org/koji/rpminfo?rpmID=4055905.
Some warning messages appears due to a strict set of compiler rules. Warnings are bad, warnings must die :)
I am not very computer literate, so I am not certain about the problem.
First, let me say that Bimp is a very nice plugin. It works well in everyway for me, except that I can not load a folder of .svg's. It will add a folder of picture files, though.
I am locating my folder and then opening it and clicking the 'Add' button.
As I say...I can do this fine for .jpg;s and png's, but not for .svg's.
I can, however, load those same .svg's one at a time, by typing the name in the dialog box.
And they convert to .png's fast...it is GREAT.
But, I am just wondering why I can't add several of them all at once in a folder.
This probem has been discussed and you have seen it at the gimpchat forum.
It could possibly be something about my specific computer and not related to a problem with the plugin. So if you have not heard of this issue, then it is probably just something I messed up on my computer....perhaps I deleted something I should not have, or perhaps another program is in conflict. I did turn off my security to see if it was blocking and that did not make a difference.
Another gimpster checked my files and they were able to be opened as a folder by that person's bimp....so we know it is not the .svg files causing the problem.
Thanks for you attention to the matter...gramg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.