Gimp-Forum.net
Gimp 3.x scanner xsane plugin is now available! - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Gimp 2.99 & Gimp 3.0 (https://www.gimp-forum.net/Forum-Gimp-2-99-Gimp-3-0)
+--- Thread: Gimp 3.x scanner xsane plugin is now available! (/Thread-Gimp-3-x-scanner-xsane-plugin-is-now-available)

Pages: 1 2


Gimp 3.x scanner xsane plugin is now available! - snovotill - 01-12-2025

I am now able to use my scanner in Gimp 3 thanks to the developer who published it at https://yingtongli.me/git/gimp-xsanecli
It works in Wayland as well as X.


RE: Gimp 3.x scanner xsane plugin is now available! - rich2005 - 01-12-2025

Using kubuntu 24.04 / Gimp 3.0 RC2 appimage / Brother J825 printer/scanner (wireless connection)

..and working here, although using a patched xsane version (1.0) since the default 'buntu version (0.999) is broken. (as a Gimp plugin)


RE: Gimp 3.x scanner xsane plugin is now available! - Xxxx - 01-23-2025

Works with xsane 0.999-7 on Manjaro (not tried with Wayland). Thanks !


RE: Gimp 3.x scanner xsane plugin is now available! - henry88g - 03-18-2025

I have had no success with this on the just-released GIMP-3.0.0-x86_64.AppImage.  xsane is 0.999-11ubuntu1
My system xsane works fine from the command line.


Any ideas?  Here's what my terminal says when I use the plugin.


/lib/x86_64-linux-gnu/libgnutls.so.30: version `GNUTLS_3_7_4' not found (required by /tmp/.mount_GIMP-3dgBdDH/usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so)
Failed to load module: /tmp/.mount_GIMP-3dgBdDH/usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so

(xsane:15874): GdkPixbuf-WARNING **: 09:42:40.785: Error loading XPM image loader: Unable to load image-loading module: libpixbufloader-xpm.so: libpixbufloader-xpm.so: cannot open shared object file: No such file or directory

(xsane:15874): GdkPixbuf-WARNING **: 09:42:40.786: Error loading XPM image loader: Unable to load image-loading module: libpixbufloader-xpm.so: libpixbufloader-xpm.so: cannot open shared object file: No such file or directory

(xsane:15874): Gdk-CRITICAL **: 09:42:40.786: IA__gdk_drawable_unref: assertion 'GDK_IS_DRAWABLE (drawable)' failed

(xsane:15874): Gdk-CRITICAL **: 09:42:40.786: IA__gdk_drawable_unref: assertion 'GDK_IS_DRAWABLE (drawable)' failed
Traceback (most recent call last):
  File "/home/henry/.config/GIMP/3.0/plug-ins/xsanecli/xsanecli.py", line 81, in xsanecli_run
    return Gimp.ValueArray.new_from_values([GObject.Value(Gimp.PDBStatusType, Gimp.PDBStatusType.SUCCESS), GObject.Value(Gimp.Image.__gtype__, image)])
                                                                                                                                               ^^^^^
UnboundLocalError: cannot access local variable 'image' where it is not associated with a value

(xsanecli.py:15868): LibGimp-WARNING **: 09:42:41.875: _gimp_procedure_run_array: no return values, shouldn't happen
/home/henry/.config/GIMP/3.0/plug-ins/xsanecli/xsanecli.py:108: Warning: g_error_new: assertion 'domain != 0' failed
  Gimp.main(XSaneCLI.__gtype__, sys.argv)


RE: Gimp 3.x scanner xsane plugin is now available! - KBDCALLS - 05-26-2025

(01-12-2025, 09:54 AM)rich2005 Wrote: Using kubuntu 24.04 / Gimp 3.0 RC2 appimage / Brother J825 printer/scanner (wireless connection)

..and working here, although using a patched xsane version (1.0) since the default 'buntu version (0.999) is broken. (as a Gimp plugin)

So the statement does not make sense. If then with a precise source. Preferably with an exact link to the sources


RE: Gimp 3.x scanner xsane plugin is now available! - rich2005 - 05-26-2025

Well, the statement does make sense, Example for ubuntu 24.04 xSane version is 0.999 - and is broken.  It needs fixing for ubuntu, but that might not be true for all versions of linux.

It seems that xsane is almost abandoned although looking at https://gitlab.com/sane-project/frontend/xsane there are some updates. Still seems to be 0.999 from 6 years ago.

The opening splash, shows a little newer, a copyright 2022

[attachment=13512]

I would love to give you the source code I used, unfortunately lost it, I remember it came via the linux Mint forum.

I gone back to scanning with XSane on its own, then opening the saved scan in Gimp.

For I have not tried this but for ubuntu users a PPA - https://launchpad.net/~sane-project/+archive/ubuntu/sane-release/+packages Might be worth a try although not xSane - only the sane library.


RE: Gimp 3.x scanner xsane plugin is now available! - pakman - 07-23-2025

Works for me on openSUSE Slowroll, currently with Gimp 3.0.4-1.1 and XSane 0.999-6.2 (Gnome/Wayland)

Thanks all.


RE: Gimp 3.x scanner xsane plugin is now available! - Andrew_P - 07-25-2025

(01-12-2025, 06:14 AM)snovotill Wrote: I am now able to use my scanner in Gimp 3 thanks to the developer who published it at https://yingtongli.me/git/gimp-xsanecli
It works in Wayland as well as X.

I ran the software update on my Linux Mint 22 system yesterday and it replaced my GIMP 2.10 installation with GIMP 3.0.4.  With high hopes, I downloaded and installed the gimp-xsanecli Python plug-in.  It shows up as an entry in the File/Create menu, but when I click it, nothing happens; the XSANE window never appears. Sad


RE: Gimp 3.x scanner xsane plugin is now available! - rich2005 - 07-25-2025

I have not tried it yet but Mint 22 is based on 'buntu 24.04 The xsane package for that does not work (unless it was fixed since I last looked at it)

The test is - does xsane as a stand-alone work?

I will try a Mint 22 in a VM and see what happens.


RE: Gimp 3.x scanner xsane plugin is now available! - rich2005 - 07-26-2025

I said I would try a Mint 22.1 VM, new installation & updated. No Gimp installed

xsane 0.999 from the repo works and using my ancient Canon LiDE 30 (usb) scanner looks like this:

[attachment=13747]

Note that Gimp 2 is a dependency (Gimp 2.10.36 is the default for 'buntu 24.04 / Mint 22 )

....the question is where did the Gimp 3.0.4 come from ?