Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure ImageMagick for adept #19

Open
Fleshgrinder opened this issue Feb 18, 2014 · 2 comments
Open

How to configure ImageMagick for adept #19

Fleshgrinder opened this issue Feb 18, 2014 · 2 comments

Comments

@Fleshgrinder
Copy link

Hi there!

Currently I compile my ImageMagick executable myself and I use the following configure options:

./configure \
  --disable-static \
  --enable-shared \
  --with-jpeg \
  --with-png \
  --with-quantum-depth=8 \
  --with-rsvg \
  --with-webp \
  --without-bzlib \
  --without-djvu \
  --without-dps \
  --without-fftw \
  --without-fontconfig \
  --without-freetype \
  --without-gvc \
  --without-jbig \
  --without-jp2 \
  --without-lcms \
  --without-lcms2 \
  --without-lqr \
  --without-lzma \
  --without-magick-plus-plus \
  --without-openexr \
  --without-pango \
  --without-perl \
  --without-tiff \
  --without-wmf \
  --without-x \
  --without-xml \
  --without-zlib

Sadly, running the adept unit tests (great thing) fails:

 ✓ Find Tools
 ✓ Find Tools with path resolving
 ✓ Validate Input JPEG
 ✓ Read Image Dimension
 ✓ Optimize Tile Size
 ✓ Optimize Black/White Threshold
 ✓ Slice Image into Tiles
 ✗ Retrieve Black/White Median
   (in test file /usr/local/src/adept-jpg-compressor/unittests/tests_adept.bats, line 56)
 ✓ Calculate Tile Count for Reassembly

9 tests, 1 failure

Which options are really necessary to compile ImageMagick and use it with adept?

@technopagan
Copy link
Owner

Hi!

Can you run "identify" on the command line with your manually compiled version of ImageMagick?

Adept needs "identify" to be available. Test it with "identify -channel Gray -format "%[fx:255*mean]" unittests/test.jpg" within your Adept checkout and see if it returns "124.519".

@Fleshgrinder
Copy link
Author

Hi, yes both works without any problems:

fleshgrinder@host:/usr/local/src/adept-jpg-compressor$ which identify
/usr/local/bin/identify
fleshgrinder@host:/usr/local/src/adept-jpg-compressor$ identify -channel Gray -format "%[fx:255*mean]" unittests/test.jpg
124.519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants