Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gimp 3.x scanner xsane plugin is now available!
#1
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.
Reply
#2
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)
Reply
#3
Works with xsane 0.999-7 on Manjaro (not tried with Wayland). Thanks !
Reply
#4
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)
Reply
#5
(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
Reply
#6
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

   

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/+arc.../+packages Might be worth a try although not xSane - only the sane library.
Reply
#7
Works for me on openSUSE Slowroll, currently with Gimp 3.0.4-1.1 and XSane 0.999-6.2 (Gnome/Wayland)

Thanks all.
Reply
#8
(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
Reply
#9
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.
Reply
#10
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:

   

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 ?
Reply


Forum Jump: