Home > Archive > PERL Beginners > April 2004 > Perl and images
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Nilay Puri 2004-04-27, 5:55 am |
| Hi all,
I need to convert JPEGS to Grayscale TIFS
Large Size JPEGS.
Which is the best module I should opt for ?
Thanks.
| |
| tomthumbkop 2004-04-27, 9:42 am |
| I'd recommend ImageMagik
quote: Originally posted by Nilay Puri
Hi all,
I need to convert JPEGS to Grayscale TIFS
Large Size JPEGS.
Which is the best module I should opt for ?
Thanks.
| |
|
|
| Zentara 2004-04-27, 12:07 pm |
| On Tue, 27 Apr 2004 14:14:47 +0530, nilayp@noida.hcltech.com (Nilay
Puri) wrote:
>Hi all,
>
>I need to convert JPEGS to Grayscale TIFS
> Large Size JPEGS.
>
>Which is the best module I should opt for ?
ImageMagick is your best bet.
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
| |
| Jesus Velasquez 2004-04-27, 12:07 pm |
|
Thanks a lot for your time please reply very soon.
muchas gracias por su tiempo por favor contestame
muy pronto.
Bye.Jesus Velasquez
--
________________________________________
_______
http://mail.mexico.com
¡Disponible Ya! Utiliza el Outlook y Outlook Express para bajar tus correos por solo US$24.95 al año
Now available! Download your mail into your computer with Outlook and Outlook Express US$24.95/yr
Powered by www.M3xico.com
| |
| Jan Eden 2004-04-27, 12:07 pm |
| nat wrote on 27.04.2004:
>earlier <nilayp@noida.hcltech.com> wrote...
>
>
>Imagemagick is really good.
>
>http://www.imagemagick.org/www/perl.html
>
=46unny, I just asked how to install Image::Magick on Mac OS X at macosx@p=
erl.org and was told to use Imager instead. So I'll post my question again:
I try to install the Image::Magick module. ImageMagick itself was installed=
by a TeX distribution (gwTeX), and I found:
drwxr-xr-x 14 root admin 476 22 Mar 12:15 Magick++
-rw-r--r-- 1 root admin 389 7 Feb 16:00 Magick++.h
drwxr-xr-x 3 root admin 102 10 Nov 00:26 freetype2
-rw-r--r-- 1 root admin 3814 4 Jan 21:31 ft2build.h
drwxr-xr-x 18 root admin 612 22 Mar 12:14 libwmf
drwxr-xr-x 33 root admin 1122 22 Mar 12:15 magick
-rw-r--r-- 1 root admin 755 7 Feb 17:03 uninameslist.h
in ./usr/local/include/.
Now the installation instructions tell me to=20
>edit Makefile.PL and change LIBS and INC to include the
>appropriate path information to the required libMagick library. You
>will also need library search paths (-L) to JPEG, PNG, TIFF, etc.
>libraries if they were included with your installed version of
>ImageMagick.
The actual settings are:
# Header search specfication and preprocessor flags
'INC' =3D> '-I../ -I.. -I/usr/include/freetype2 -I/usr/X11R6/include =
-I/usr/X11R6/include/X11 -I/usr/include/libxml2',
# Library specification
'LIBS' =3D> ['-L/usr/local/lib -L../magick/.libs -lMagick -L/usr/X11R6=
/lib -L/usr/lib -L/usr/lib -llcms -ltiff -lfreetype -ljpeg -lpng -ldpstk -l=
dps -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lpthread -lm -lpthread'],
Can someone tell me which paths I should enter to successfully compile Perl=
Magick? I did not find something like "ltiff" or "ljpeg", but the convert t=
ool works fine with these formats.
Thanks,
Jan
--=20
These are my principles and if you don't like them... well, I have others. =
- Groucho Marx
| |
| Wiggins D Anconia 2004-04-27, 12:07 pm |
| > nat wrote on 27.04.2004:
>
> Funny, I just asked how to install Image::Magick on Mac OS X at
macosx@perl.org and was told to use Imager instead. So I'll post my
question again:
>
Saw your message there. Imager might be a good choice for you overall,
but then that isn't really what you asked. Assuming you have good
reasons to want Image::Magick, then it is a fine module. I was also
hoping someone with a bit more OS X experience would suggest how to
solve this the "Apple Way".
> I try to install the Image::Magick module. ImageMagick itself was
installed by a TeX distribution (gwTeX), and I found:
>
> drwxr-xr-x 14 root admin 476 22 Mar 12:15 Magick++
> -rw-r--r-- 1 root admin 389 7 Feb 16:00 Magick++.h
> drwxr-xr-x 3 root admin 102 10 Nov 00:26 freetype2
> -rw-r--r-- 1 root admin 3814 4 Jan 21:31 ft2build.h
> drwxr-xr-x 18 root admin 612 22 Mar 12:14 libwmf
> drwxr-xr-x 33 root admin 1122 22 Mar 12:15 magick
> -rw-r--r-- 1 root admin 755 7 Feb 17:03 uninameslist.h
>
> in ./usr/local/include/.
>
> Now the installation instructions tell me to
>
>
> The actual settings are:
>
> # Header search specfication and preprocessor flags
> 'INC' => '-I../ -I.. -I/usr/include/freetype2
-I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2',
>
The above will need a -I/usr/local/include added to it to specify that
path as part of the includes path.
> # Library specification
> 'LIBS' => ['-L/usr/local/lib -L../magick/.libs -lMagick
-L/usr/X11R6/lib -L/usr/lib -L/usr/lib -llcms -ltiff -lfreetype -ljpeg
-lpng -ldpstk -ldps -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lpthread
-lm -lpthread'],
This one surprises me, generally there will be a libjpeg.so, etc. in a
library path. You need to make sure the path to the .so files is
included in the list above, which I would have thought they would be in
/usr/local/lib based on your include path, but if they come with the dev
tools in OS X then god knows where it puts them. On linux for instance
there is a ld.so.conf that specifies what directories to include when
looking for the shared libs. There should be something similar assuming
gcc is being used. Alternatively you can specify these types of paths
either in an ENV variable, LD_LIBRARY_PATH for instance, but I don't
know precisely off the top of my head, usually I guess my way through it
:-).
>
> Can someone tell me which paths I should enter to successfully compile
PerlMagick? I did not find something like "ltiff" or "ljpeg", but the
convert tool works fine with these formats.
>
You won't (likely) find an ltiff path, instead it will be libtiff.so or
some such. Look for the shared lib files and see if you can add the
paths to them to the above switches.
Good luck,
http://danconia.org
| |
| Jan Eden 2004-04-28, 2:32 am |
| Wiggins d Anconia wrote on 27.04.2004:
>-I/usr/X11R6/include -I/usr/X11R6/include/X11
>-I/usr/include/libxml2',
>
>The above will need a -I/usr/local/include added to it to specify
>that path as part of the includes path.
>
That's what Sherm Pendley suggested, too, but it did not suffice.
>-L/usr/X11R6/lib -L/usr/lib -L/usr/lib -llcms -ltiff -lfreetype
>-ljpeg -lpng -ldpstk -ldps -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz
>-lpthread -lm -lpthread'],
>
>
>This one surprises me, generally there will be a libjpeg.so, etc. in
>a library path. You need to make sure the path to the .so files is
>included in the list above, which I would have thought they would be
>in /usr/local/lib based on your include path, but if they come with the
>/dev tools in OS X then god knows where it puts them. On linux for
>instance there is a ld.so.conf that specifies what directories to
>include when looking for the shared libs. There should be something
>similar assuming gcc is being used. Alternatively you can specify
>these types of paths either in an ENV variable, LD_LIBRARY_PATH for
>instance, but I don't know precisely off the top of my head, usually
>I guess my way through it
>:-).
>
I checked /usr/local/lib, and it does have ImageMagick libs in it, no .so f=
iles, though:
drwxr-xr-x 11 root admin 374 22 Mar 12:15 ImageMagick-5.5.1
-rw-r--r-- 1 root admin 2209216 7 Feb 16:00 libMagick++.a
-rwxr-xr-x 1 root admin 977 7 Feb 16:00 libMagick++.la
-rw-r--r-- 1 root admin 7406544 7 Feb 16:00 libMagick.a
-rwxr-xr-x 1 root admin 828 7 Feb 15:59 libMagick.la
-rwxr-xr-x 1 root admin 1217588 1 Dec 2002 libfreetype.6.2.0.dylib
lrwxrwxrwx 1 root wheel 23 20 Nov 21:41 libfreetype.6.dylib -> lib=
freetype.6.2.0.dylib
-rw-r--r-- 1 root admin 1717448 4 Jan 21:31 libfreetype.a
lrwxrwxrwx 1 root wheel 22 22 Mar 12:08 libfreetype.dylib -> libfr=
eetype6.3.4.dylib
-rwxr-xr-x 1 root admin 747 4 Jan 21:31 libfreetype.la
[snip]
I seem to have started a rather extensive thread on macosx@perl.org, so I g=
uess we should keep this there.
Thanks,
Jan
--=20
How many Microsoft engineers does it take to screw in a lightbulb? None. Th=
ey just redefine "dark" as the new standard.
|
|
|
|
|