Package Details: cropgui 0.6-1

Git Clone URL: (read-only, click to copy)
Package Base: cropgui
Description: a simple tool for lossless jpeg cropping
Upstream URL:
Licenses: GPL
Submitter: jose1711
Maintainer: jose1711
Last Packager: jose1711
Votes: 14
Popularity: 0.048716
First Submitted: 2010-05-15 21:14 (UTC)
Last Updated: 2021-12-20 08:03 (UTC)

Latest Comments

eniac commented on 2022-02-04 12:41 (UTC)

I was able to fix the AttributeError issue on Wayland by applying the patch at

eniac commented on 2021-12-21 18:08 (UTC) (edited on 2021-12-21 18:08 (UTC) by eniac)

Tried both cropgui-git and cropgui, I always get the following error, any idea?

Stepconf encountered an error
File "/usr/bin/cropgui", line 223, in <module>
wa = display.get_primary_monitor().get_workarea()
AttributeError: 'NoneType' object has no attribute 'get_workarea'

Rhinoceros commented on 2021-12-17 08:07 (UTC)

Thanks for opening the issue @jose1711

jose1711 commented on 2021-12-17 08:04 (UTC)

@Rhinoceros Yes, can confirm this.

Rhinoceros commented on 2021-12-17 00:14 (UTC)

I rebuilt for python 3.10 and cropgui is failing to launch for me. Anyone else with this problem?

Rhinoceros commented on 2020-07-22 13:49 (UTC)

Works fine for me:

$ pacman -Ql cropgui
cropgui /usr/
cropgui /usr/bin/
cropgui /usr/bin/cropgui
cropgui /usr/lib/
cropgui /usr/lib/python3.8/
cropgui /usr/lib/python3.8/site-packages/
cropgui /usr/lib/python3.8/site-packages/
cropgui /usr/lib/python3.8/site-packages/
cropgui /usr/lib/python3.8/site-packages/
cropgui /usr/lib/python3.8/site-packages/stock-rotate-270-16.png
cropgui /usr/lib/python3.8/site-packages/stock-rotate-90-16.png
cropgui /usr/share/
cropgui /usr/share/applications/
cropgui /usr/share/applications/cropgui.desktop
cropgui /usr/share/pixmaps/
cropgui /usr/share/pixmaps/cropgui.png

How are you installing it?

dreieck commented on 2020-07-22 13:46 (UTC)

Regarding this and this problems, I added the following at the end of the install()-function:

  install -d -m 755 "$pkgdir/usr/bin"
  install -d -m 755 "$pkgdir/usr/share"
  mv -v "$pkgdir/sbin"/* "$pkgdir/usr/bin/"
  mv -v "$pkgdir/share"/* "$pkgdir/usr/share/"
  rmdir -v "$pkgdir/sbin" "$pkgdir/share"

dreieck commented on 2020-07-22 13:42 (UTC)

It creates a directory /share. It is a non-standard one.

Do you want to have /usr/share insteas?

dreieck commented on 2020-07-22 13:34 (UTC)

Wants to create /sbin, which it should not (it is a symlink to /usr/bin):

(1/1) checking for file conflicts                                                                            [################################################################] 100%
error: failed to commit transaction (conflicting files)
cropgui: /sbin exists in filesystem (owned by filesystem)
Errors occurred, no packages were upgraded.

Rhinoceros commented on 2020-05-19 23:16 (UTC)

Thanks for the update, but it's broken.

==> ERROR: Integrity checks (md5) differ in size from the source array.

You have one item in the source array, and two in the md5sums.

ax34 commented on 2020-04-19 00:35 (UTC)

i suggest to take a deeper look into script.

And what should i do with it? I'm not a maintainer nor a developer of cropgui.

jose1711 commented on 2020-04-18 20:25 (UTC)

@ax34 not on two of my systems:

❯ find pkg -type d                                                                                                                        pkg

i suggest to take a deeper look into script.

ax34 commented on 2020-04-18 20:10 (UTC) (edited on 2020-04-18 20:15 (UTC) by ax34)

edit: @jose1711 Resulting package contains cropgui binary in /bin instead of /usr/bin, is it done right way?

ax34 commented on 2020-04-18 20:05 (UTC)


jose1711 commented on 2020-04-18 18:16 (UTC)

@ax34 i cannot reproduce the issue you're having. can you please post full output of:

tar xvf cropgui.tar.gz
cd cropgui
find pkg

ax34 commented on 2020-04-09 21:55 (UTC)

(1/1) checking for file conflicts                                             [############################################] 100%
error: failed to commit transaction (conflicting files)
cropgui: /bin exists in filesystem (owned by filesystem)
Errors occurred, no packages were upgraded.

Rhinoceros commented on 2020-03-26 02:54 (UTC) (edited on 2020-03-27 07:14 (UTC) by Rhinoceros)

@jose1711 since this is broken (as per your link), could you please patch this package?

EDIT: Actually the patch in the link doesn't fix it for me EDIT2: The comments fix it though

jose1711 commented on 2020-03-09 22:24 (UTC)


jose1711 commented on 2019-12-09 17:06 (UTC)

@jackoneill then i believe it'd best if that dependency is there. fixed. thank you for reporting this

jackoneill commented on 2019-11-30 15:23 (UTC)

It fails to crop some images because exiftool isn't installed. The project's says:

"exiftool to clear the EXIF rotation flag from jpeg output images (debian package: libimage-exiftool-perl)"

The corresponding Arch package is perl-image-exiftool. Once I installed that package, it successfully cropped the images that were making it fail before.

Here is the console output from the fails:

Exception in thread Thread-3: Traceback (most recent call last): File "/usr/lib/python2.7/", line 801, in bootstrap_inner File "/usr/lib/python2.7/", line 754, in run self.__target(*self.__args, self.__kwargs) File "/usr/lib/python2.7/site-packages/", line 87, in runner["exiftool", "-overwrite_original", "-Orientation=1", "-n", target]) File "/usr/lib/python2.7/", line 172, in call return Popen(*popenargs, kwargs).wait() File "/usr/lib/python2.7/", line 394, in __init errread, errwrite) File "/usr/lib/python2.7/", line 1047, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

jose1711 commented on 2019-03-20 20:16 (UTC)


please show me the output of: makepkg; find pkg

dreieck commented on 2019-03-20 17:01 (UTC)

Packaging error:

cropgui: /sbin exists in filesystem (owned by filesystem)

Install to /usr/bin instead and do nothing at all about /sbin (it is a symlink to /usr/bin on a proper Arch Linux system).

alx741 commented on 2018-12-02 15:08 (UTC)

@jose1711 that was it! removed `/bin` from the front of my `PATH` and it worked. Thanks a lot!

jose1711 commented on 2018-12-02 10:37 (UTC)

actually, quite the opposite. this is how it looks on my system:

➜  / which python2

PATH env variable on your system likely has /usr/bin preceded by /bin. this does not make sense though as /bin is only a symbolic link to /usr/bin. i suggest you check and fix your PATH in /etc/profile, ~/.bashrc or the-like. this should fix package building as well.

alx741 commented on 2018-12-02 02:00 (UTC)

@jose1711 well, seems it's nothing unexpected:

$ which python2

jose1711 commented on 2018-11-30 20:39 (UTC)

i checked the script and it looks a bit strange. when -p PREFIX is used, the value of PREFIX is not really used. i wonder what's the output of which python2 on your system

alx741 commented on 2018-11-30 13:44 (UTC)

@jose1711 here it is:

$ find pkg; ls -ld /bin /usr/bin
lrwxrwxrwx 1 root root     7 Aug 21 09:21 /bin -> usr/bin
drwxr-xr-x 5 root root 90112 Nov 29 21:50 /usr/bin

jose1711 commented on 2018-11-27 20:21 (UTC)


weird error message. please follow these steps in terminal (as a regular user):

git clone
cd cropgui
find pkg; ls -ld /bin /usr/bin
# post the output of find and ls command to this thread

alx741 commented on 2018-11-27 17:20 (UTC) (edited on 2018-11-30 13:40 (UTC) by alx741)

@jose1711, sorry! I read your reply just now. I'm still getting the same error, here is the whole output (using aurman):

~~ initializing aurman...
~~ calculating solutions...

:: The following 1 package(s) are getting installed:
   aur/cropgui  /  ->  0.3-2
~~ looking for new pkgbuilds and fetching them...
loading packages...
resolving dependencies...
looking for conflicting packages...

Package (1)  New Version  Net Change

cropgui      0.3-2          0.09 MiB

Total Installed Size:  0.09 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                     [----------------] 100%
(1/1) checking package integrity                   [----------------] 100%
(1/1) loading package files                        [----------------] 100%
(1/1) checking for file conflicts                  [----------------] 100%
error: failed to commit transaction (conflicting files)
cropgui: /bin exists in filesystem (owned by filesystem)
Errors occurred, no packages were upgraded.
2018-11-27 12:14:40,359 - wrappers - pacman - ERROR - pacman query ['sudo', 'pacman', '--upgrade', '--noconfirm', '--asexplicit', 'cropgui-0.3-2-any.pkg.tar.xz'] failed

jose1711 commented on 2018-05-09 20:36 (UTC)

@alx741: can't reproduce it, can you please post the whole output?

willemw commented on 2018-05-08 21:28 (UTC)

"provides=('cropgui')" is redundant.

"conflicts=('cropgui-git')" is redundant. See "provides" of cropgui-git.

alx741 commented on 2018-05-08 20:21 (UTC)

I'm getting this error:

error: failed to commit transaction (conflicting files) cropgui-git: /bin exists in filesystem Errors occurred, no packages were upgraded.

I'm guessing the package needs a fix?

jose1711 commented on 2017-10-01 19:02 (UTC)

@Rhinoceros updated, thanks for letting me know

Rhinoceros commented on 2017-10-01 01:25 (UTC)

I flagged this as out-of-date. The PKGBUILD is now two versions behind. I know four years ago you said that you wanted to see the release from four years prior to that propagated to the other webpage [a], but I'm fairly sure that page is redundant. It's lagging eight years behind, and the author specifically responded to requests to tag a new version here [b], without updating that other page. [a] [b]

Rhinoceros commented on 2016-12-07 02:45 (UTC)

I get the same errors as ZaZam. cropgui-git works perfectly, though, and also includes an executable in /usr/bin

ZaZam commented on 2015-08-17 11:28 (UTC)

Traceback (most recent call last): File "/usr/share/cropgui/", line 18, in <module> from cropgui_common import * File "/usr/share/cropgui/", line 16, in <module> import Image ImportError: No module named Image

quite commented on 2013-10-26 15:48 (UTC)

"from PIL import Image" (and other Image*) is required for supporting the PIL from Pillow which is current in Arch.

willemw commented on 2013-07-23 08:04 (UTC)

@jose1711, about /usr/bin/cropgui file: Yes, but with some launchers (e.g. standard dmenu), or when launching from the command line, doesn't work. Having an executable file in /usr/bin/ is (fairly) standard.

jose1711 commented on 2013-07-23 07:51 (UTC)

i think having a separate cropgui-git is the way how we should handle this. so no, i am not bumping version until i see this has been done also at @willemw: .desktop file will lead you to the correct executable (/usr/share/cropgui/

willemw commented on 2013-07-21 12:46 (UTC)

There is no /usr/bin/cropgui installed.

Alister.Hood commented on 2013-07-18 09:36 (UTC)

FWIW I've made a cropgui-git package. It uses the gtk gui.

Alister.Hood commented on 2013-07-10 03:48 (UTC)

If you check the git repo you'll see there is a 0.2 version... although maybe a cropgui-git package would be better, anyway ;)

mrbit commented on 2012-08-02 22:48 (UTC)


jose1711 commented on 2012-08-02 22:18 (UTC)


mrbit commented on 2012-08-02 22:11 (UTC)

add x86_64 ????

jose1711 commented on 2012-08-02 21:44 (UTC)

@bkuri: thank you, should be fixed now

bkuri commented on 2012-08-02 09:15 (UTC)

I got this warning after installing cropgui, which was preventing me from using the GTK version: ( libglade-WARNING **: could not find glade file '/usr/share/cropgui/' I fixed it by downloading the following file (and placing it in /usr/share/cropgui): HTH