Package Details: jpegtran_crop 9e-1

Git Clone URL: https://aur.archlinux.org/jpegtran_crop.git (read-only, click to copy)
Package Base: jpegtran_crop
Description: Stable jpegtran version with the lossless crop and scale feature
Upstream URL: http://sylvana.net/jpegcrop/jpegtran/
Licenses: Other
Conflicts: jpegtran_crop_bin, libjpeg-turbo
Submitter: jose1711
Maintainer: jose1711
Last Packager: jose1711
Votes: 2
Popularity: 0.000000
First Submitted: 2011-10-30 21:33 (UTC)
Last Updated: 2022-05-09 20:56 (UTC)

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

alan1world commented on 2022-03-09 18:52 (UTC)

Error in build:

PKGBUILD: line 15: cd: /tmp/jpegtran_crop/src/jpegcrop/jpeg-9d: No such file or directory

sekret commented on 2021-10-02 13:58 (UTC)

The checksum seems to be wrong.

jose1711 commented on 2020-09-04 20:09 (UTC) (edited on 2020-09-04 20:10 (UTC) by jose1711)

@Maniaxx if you check https://aur.archlinux.org/packages/libjpeg9 you'll find that it also contains /usr/lib/libjpeg.so.9. And libjpeg-turbo updating to v9 seems very unlikely: https://libjpeg-turbo.org/About/Jpeg-9

In a nutshell, The libjpeg-turbo Project has decided to use the release of 
jpeg-9 as an opportunity to draw a line in the sand and say "enough!" We could 
emulate the libjpeg v9 API/ABI easily enough, but why? The only purpose would be 
to support applications or O/S distributions that had upgraded from jpeg-8 to 
jpeg-9, but it is our opinion that no technical justification exists for this 
upgrade. 

Also it seems to be quite a lot of bad blood between the projects..

Maniaxx commented on 2020-08-17 22:53 (UTC) (edited on 2020-08-17 22:54 (UTC) by Maniaxx)

Not sure. It might work if jpgtran asks for libjpeg.so.9 specifically. But you'll get into trouble once libjpeg-turbo updates to v9 as well. I'm wondering why they haven't done so already. Maybe ask the officials how to deal with this.

jose1711 commented on 2020-08-16 21:28 (UTC)

@Maniaxx thanks for sharing. please let me know what you think about this:

diff --git a/PKGBUILD b/PKGBUILD
index 0784861..f1b2f9a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@

 pkgname=jpegtran_crop
 pkgver=9d
-pkgrel=1
+pkgrel=2
 pkgdesc="Stable jpegtran version with the lossless crop and scale feature"
 arch=('i686' 'x86_64')
 url="http://sylvana.net/jpegcrop/jpegtran/"
 license=('other')
 source=("http://sylvana.net/jpegcrop/jpegcrop.tar.gz")
-md5sums=('c49521506af43d9faebc91ee1c85a105')
-conflicts=('jpegtran_crop_bin' 'libjpeg-turbo')
+md5sums=('7e1b64e8691ba8ee0efb94dcd5734373')
+conflicts=('jpegtran_crop_bin')

 build() {
   cd ${srcdir}/jpegcrop/jpeg-${pkgver}
@@ -20,4 +20,7 @@ build() {
 package() {
   cd ${srcdir}/jpegcrop/jpeg-${pkgver}
   make DESTDIR=${pkgdir} install
+  find $pkgdir -type f \( ! -name jpegtran -a ! -name 'libjpeg.so.[0-9]*' \) -delete
+  rm $pkgdir/usr/lib/libjpeg.so
+  mv $pkgdir/usr/bin/jpegtran $pkgdir/usr/bin/jpegtran_crop
 }

Maniaxx commented on 2020-08-16 17:45 (UTC) (edited on 2020-08-16 18:40 (UTC) by Maniaxx)

How is this meant to be installed without breaking the dependency tree? extra/libjpeg-turbo has too many dependencies to get uninstalled here.

Edit: As a workaround i've compiled it statically:

./configure
make DESTDIR=/tmp/jpegtran LINK='$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -all-static -s -o $@' -j4 install

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

Checksum verification fails:

==> Validating source files with md5sums...
    jpegcrop.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!

jose1711 commented on 2019-11-18 16:15 (UTC)

@Nowaker

there is a difference between jpegtran from libjpeg-turbo and this PKGBUILD. namely libjpeg-turbo supports -icc switch but it is lacking support for:

-drop +X+Y filename Drop another image
-scale M/N          Scale output image by fraction M/N
-wipe WxH+X+Y       Wipe (gray out) a rectangular subarea

aurmyster commented on 2019-11-17 08:11 (UTC)

If you want to build this, change 9b to 9d in both the PKGBUILD & .SRCINFO files.

Please note that this package also conflicts with extra/libjpeg-turbo

Nowaker commented on 2014-08-10 18:16 (UTC)

How does this package differ from libjpeg-turbo from [community] that provides the very same binaries? If it doesn't, this package needs to be deleted.