Discussion:
[Typo3] ImageMagick - Quick Question
A-san
2005-11-14 15:40:15 UTC
Permalink
Hi,

Where can I find direction on how to install and use ImageMagick on
Typo3, after you have installed Typo3... mainly version 3.8.0.

Thanks,
Amir M. :)
Matthew Manderson
2005-11-14 07:12:08 UTC
Permalink
Post by A-san
Where can I find direction on how to install and use ImageMagick on
Typo3, after you have installed Typo3... mainly version 3.8.0.
Typically you download the static binaries and unzip to a folder in your
webspace and point TYPO3 to it.

I suggest you start with GraphicksMagick (gm) rather than ImageMagick (IM).

1) Download gm from http://typo3.sunsite.dk/software/linux/

http://typo3.sunsite.dk/software/linux/graphicsmagick-1.1.6_i386-static-2.tar.gz
http://typo3.sunsite.dk/software/linux/imagemagick-4.2.9_i386-static-3.tar.gz

2) Unpack to web space eg /htdocs/graphicsmagick-1.1.6/bin/gm
3) BE Install tool select ../../../graphicsmagick-1.1.6/bin/ as your path or
similar.
4) Choose this GM from the list and save to localconf.
5) Run the Image tests.

6) A better way is to instead copy the 'gm' to your local /usr/bin/ folder -
ask your server admin.
7) Go to step 3 above.

8) Follow the same proceedure for IM
9) If you have safe_mode On etc you may have a lot more difficulty so use.

That is it.

Matthew
A-san
2005-11-14 23:19:15 UTC
Permalink
Post by Matthew Manderson
Post by A-san
Where can I find direction on how to install and use ImageMagick on
Typo3, after you have installed Typo3... mainly version 3.8.0.
Typically you download the static binaries and unzip to a folder in your
webspace and point TYPO3 to it.
I suggest you start with GraphicksMagick (gm) rather than ImageMagick (IM).
1) Download gm from http://typo3.sunsite.dk/software/linux/
http://typo3.sunsite.dk/software/linux/graphicsmagick-1.1.6_i386-static-2.tar.gz
http://typo3.sunsite.dk/software/linux/imagemagick-4.2.9_i386-static-3.tar.gz
2) Unpack to web space eg /htdocs/graphicsmagick-1.1.6/bin/gm
3) BE Install tool select ../../../graphicsmagick-1.1.6/bin/ as your path or
similar.
4) Choose this GM from the list and save to localconf.
5) Run the Image tests.
6) A better way is to instead copy the 'gm' to your local /usr/bin/ folder -
ask your server admin.
7) Go to step 3 above.
8) Follow the same proceedure for IM
9) If you have safe_mode On etc you may have a lot more difficulty so use.
That is it.
Matthew
Thanks for your reply Matthew!

But why is GM better then ImageMagick? If GM is just an easier
installation, thats not to worry, because my hosts already installed
ImageMagick onto the server. All I need to do is know how to connect
Typo3 with it.

But if there are other differences I should consider, please let me
know. :)
Mark Kuiphuis
2005-11-14 11:30:56 UTC
Permalink
You need to edit the localconf.php variable and add the following entry

$TYPO3_CONF_VARS['GFX']['im_path'] = '/usr/bin/';

At least that worked for me..

Be sure you have the right path after the = sign where IM can be found.

Kind regards,
Mark
Post by A-san
Post by Matthew Manderson
Post by A-san
Where can I find direction on how to install and use ImageMagick on
Typo3, after you have installed Typo3... mainly version 3.8.0.
Typically you download the static binaries and unzip to a folder in your
webspace and point TYPO3 to it.
I suggest you start with GraphicksMagick (gm) rather than ImageMagick (IM).
1) Download gm from http://typo3.sunsite.dk/software/linux/
http://typo3.sunsite.dk/software/linux/graphicsmagick-1.1.6_i386-static-2.tar.gz
http://typo3.sunsite.dk/software/linux/imagemagick-4.2.9_i386-static-3.tar.gz
2) Unpack to web space eg /htdocs/graphicsmagick-1.1.6/bin/gm
3) BE Install tool select ../../../graphicsmagick-1.1.6/bin/ as your path or
similar.
4) Choose this GM from the list and save to localconf.
5) Run the Image tests.
6) A better way is to instead copy the 'gm' to your local /usr/bin/ folder -
ask your server admin.
7) Go to step 3 above.
8) Follow the same proceedure for IM
9) If you have safe_mode On etc you may have a lot more difficulty so use.
That is it.
Matthew
Thanks for your reply Matthew!
But why is GM better then ImageMagick? If GM is just an easier
installation, thats not to worry, because my hosts already installed
ImageMagick onto the server. All I need to do is know how to connect
Typo3 with it.
But if there are other differences I should consider, please let me
know. :)
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
.
--
Met vriendelijke groet,

Mark Kuiphuis

Tel.: (074) 249 09 30
Website: http://www.exxtra.nl
E-mail: mark at exxtra.nl

Exxtra Interactive B.V.
Demmersweg 47-13
7556 BN Hengelo
Dmitry Dulepov
2005-11-14 11:35:02 UTC
Permalink
Hi!
Post by A-san
But why is GM better then ImageMagick?
GM has a stable API (IM changes it from version to version creating
nightmares for Michael Stucki) and some people say it is faster than IM.

Dmitry.
Michael Stucki
2005-11-14 17:00:27 UTC
Permalink
Post by Dmitry Dulepov
Post by A-san
But why is GM better then ImageMagick?
GM has a stable API (IM changes it from version to version creating
nightmares for Michael Stucki) and some people say it is faster than IM.
True. It is faster, more recent (IM 4.2.9 = no security fixes!!) and it
writes smaller files.

- michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
A-san
2005-11-15 09:10:42 UTC
Permalink
I will try IM for now and see if it creates problems. I will definately
consider GM though.

But as for IM, I will try what you said Mark. :) Thanks.
A-san
2005-11-15 11:17:07 UTC
Permalink
Ok, I did what Mark said... I am not sure what is supposed to happen if
it works correctly.

Can someone tell me how I should find out if the program is worked
correctly? Also, is there some guide on how I can use IM with Typo3?
For example its features, tools, etc. I hear there is a feature that
makes scaled down images look better, more crisp? For example, the
image in my homepage:
www.stratcommandcenter.com/redesign

Is there a way to make that image look better quality, more crisp?

Thanks!
Mark Kuiphuis
2005-11-15 07:59:37 UTC
Permalink
If it worked, you should be able when creating a content element of type
Text /w Image (for example) and you have uploaded an image, that you
would be able to see the small thumbnail image inside Typo3.

Regards,
Mark

P.S. I'm only a rookie (started three weeks ago with Typo3) and still am
facing a lot of issues with Typo3, so it's very well possible that
someone else can give you a better answer to that question!
Post by A-san
Ok, I did what Mark said... I am not sure what is supposed to happen if
it works correctly.
Can someone tell me how I should find out if the program is worked
correctly? Also, is there some guide on how I can use IM with Typo3?
For example its features, tools, etc. I hear there is a feature that
makes scaled down images look better, more crisp? For example, the
www.stratcommandcenter.com/redesign
Is there a way to make that image look better quality, more crisp?
Thanks!
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
Bas v.d. Wiel
2005-11-15 08:06:46 UTC
Permalink
Check the install tool. There's a section called 'image processing'
there which tests your installation of IM, GD and FreeType. If your
system passes all these tests, you can expect TYPO3 to work without any
glitches. You should be aware that (until recently?) TYPO3 used to
reduce colours to 256 on any image that had an overlay mask regardless
of output format. There is a patch for this in the bugtracker. Don't
know if it's been included in 3.8.1.

Regards,

Bas
Post by Mark Kuiphuis
If it worked, you should be able when creating a content element of type
Text /w Image (for example) and you have uploaded an image, that you
would be able to see the small thumbnail image inside Typo3.
Regards,
Mark
P.S. I'm only a rookie (started three weeks ago with Typo3) and still am
facing a lot of issues with Typo3, so it's very well possible that
someone else can give you a better answer to that question!
Post by A-san
Ok, I did what Mark said... I am not sure what is supposed to happen if
it works correctly.
Can someone tell me how I should find out if the program is worked
correctly? Also, is there some guide on how I can use IM with Typo3?
For example its features, tools, etc. I hear there is a feature that
makes scaled down images look better, more crisp? For example, the
www.stratcommandcenter.com/redesign
Is there a way to make that image look better quality, more crisp?
Thanks!
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
Mark Kuiphuis
2005-11-15 08:31:27 UTC
Permalink
Hmm...

If I click on the install link in menu Tools, I only see a blank page.
Is that some extension you first need to install?
Or do you have to enable it through localconf.php?

Regards,

Mark
Post by Bas v.d. Wiel
Check the install tool. There's a section called 'image processing'
there which tests your installation of IM, GD and FreeType. If your
system passes all these tests, you can expect TYPO3 to work without any
glitches. You should be aware that (until recently?) TYPO3 used to
reduce colours to 256 on any image that had an overlay mask regardless
of output format. There is a patch for this in the bugtracker. Don't
know if it's been included in 3.8.1.
Regards,
Bas
Matthew Manderson
2005-11-15 09:54:17 UTC
Permalink
Post by Mark Kuiphuis
If I click on the install link in menu Tools, I only see a blank page.
Is that some extension you first need to install?
Or do you have to enable it through localconf.php?
Mark, start your own thread next time please.

Surely you discovered the 'TYPO3 Install Tool' when you installed TYPO3 to
start with.

Try navigating your way to the TYPO3 BE > Tools > Install

Matthew
A-san
2005-11-15 23:33:26 UTC
Permalink
Hmm, ok. Well I am talking about the Screenshot of the Week image. I
just changed it to a Images only contentelement and I am having trouble
getting it to fit in the box perfectly. I assume it has something to do
with IM.
Matthew Manderson
2005-11-15 13:25:13 UTC
Permalink
Post by A-san
Hmm, ok. Well I am talking about the Screenshot of the Week image. I
just changed it to a Images only contentelement and I am having trouble
getting it to fit in the box perfectly. I assume it has something to do
with IM.
<div class="feature">
<div class="title">
<h3>Screenshot of the Week</h3>
</div>

<div class="content">
<!-- CONTENT ELEMENT, uid:288/image [begin] -->
<a name="288"></a>
<!-- Image block: [begin] -->

<!-- Image block: [end] -->
<!-- CONTENT ELEMENT, uid:288/image [end] -->
</div>
</div>


This is your code so you can see nothing is showing for me.

Please go back to basics and check the IM tests in the Install Tool.

Matthew
A-san
2005-11-16 09:28:02 UTC
Permalink
Post by Matthew Manderson
This is your code so you can see nothing is showing for me.
Please go back to basics and check the IM tests in the Install Tool.
Matthew
Seems you checked my code in the wrong time... here is my code, after
checking the source now:

<!-- CONTENT ELEMENT, uid:117/templavoila_pi1 [begin] -->
<a name="117"></a>
<div class="feature">

<div class="title"><h3>Screenshot of the Week</h3></div><div
class="content">
<!-- CONTENT ELEMENT, uid:290/image [begin] -->
<a name="290"></a>
<!-- Image block: [begin] -->
<div style="text-align:center;"><table width="251" border="0"
cellspacing="0" cellpadding="0" class="imgtext-table"><tr><td
colspan="1"><img src="clear.gif" width="251" height="1" alt=""
/></td></tr><tr><td valign="top"><table width="251" border="0"
cellpadding="0" cellspacing="0"><tr><td valign="top"><a
href="http://www.stratcommandcenter.com/redesign/?id="
target="_blank"><img src="typo3temp/pics/1189236f5e.jpg" width="251"
height="188" border="0" align="top" alt="" title="" /></a><br
/></td></tr></table></td></tr><tr><td colspan="1" align="center"><div
style="text-align:left;"><p class="csc-caption">Drink Up!
</p></div></td></tr></table></div><img src="clear.gif" width="1"
height="6" border="0" class="spacer-gif" alt="" title="" /><br />
<!-- Image block: [end] -->

<!-- CONTENT ELEMENT, uid:290/image [end] -->
</div></div>

-- Btw, I am having trouble accessing the Install tool with all this
wrong password mumbo jumbo, and the encription...
Matthew Manderson
2005-11-16 07:10:49 UTC
Permalink
Post by A-san
<img src="typo3temp/pics/1189236f5e.jpg" width="251"
height="188" border="0" align="top" alt="" title="" />
This shows IM seems to be working again fine.

1) Add in a password 'fred'
2) Note the md5 hash
3) Edit localconf.php
4) Paste in the hash
5) Retry the login

Matthew
A-san
2005-11-17 08:51:35 UTC
Permalink
Post by Matthew Manderson
Post by A-san
<img src="typo3temp/pics/1189236f5e.jpg" width="251"
height="188" border="0" align="top" alt="" title="" />
This shows IM seems to be working again fine.
1) Add in a password 'fred'
2) Note the md5 hash
3) Edit localconf.php
4) Paste in the hash
5) Retry the login
Matthew
Ok, accessed... and it seems I have no errors.

Now how do I allow the image to expand so that it fits exactly into the
box and still retain the quality as it has now?
Matthew Manderson
2005-11-17 07:04:37 UTC
Permalink
Post by A-san
Now how do I allow the image to expand so that it fits exactly into the
box and still retain the quality as it has now?
Please start new threads with new questions.

Please reassure other busy TYPO3'rs that you have done the basic groundwork
yourself before asking for this non specific help.
Post by A-san
Now how do I allow the image to expand
Does the image start out big enough already? ie you are not trying to scale
it larger.

Have you checked the maximum image width is not defined too small.
Post by A-san
fits exactly into the box
Have you checked your CSS for padding and margins and borders and hidden
images.
Post by A-san
and still retain the quality as it has now?
Have you checked your IM compression levels.

Please do these things first, and then ask more specific questions.
Matthew

PS: you may want to read the mailing list rules you seem to be breaking a
few of them. Sorry to be a bore but it does make life easier for everyone.
A-san
2005-11-18 04:02:07 UTC
Permalink
Post by Matthew Manderson
Post by A-san
Now how do I allow the image to expand so that it fits exactly into the
box and still retain the quality as it has now?
Please start new threads with new questions.
Please reassure other busy TYPO3'rs that you have done the basic groundwork
yourself before asking for this non specific help.
This was my ORIGINAL question...
Post by Matthew Manderson
Post by A-san
Now how do I allow the image to expand
Does the image start out big enough already? ie you are not trying to scale
it larger.
Nope, its very big already, something like 1024x768 dimensions. I am
trying to scale it down to fit exactly into that box.
Post by Matthew Manderson
Have you checked the maximum image width is not defined too small.
Post by A-san
fits exactly into the box
Have you checked your CSS for padding and margins and borders and hidden
images.
There are no CSS problems that I know of, because before I did it fine
using the HTML pagecontent. Now I am using the Images Only pagecontent
and I am having problems.
Post by Matthew Manderson
Post by A-san
and still retain the quality as it has now?
Have you checked your IM compression levels.
Please do these things first, and then ask more specific questions.
Matthew
PS: you may want to read the mailing list rules you seem to be breaking a
few of them. Sorry to be a bore but it does make life easier for everyone.
So you are saying IM compression levels have something to do with the
fact that its scaling too small? If so, how do I alter this?
Christopher
2005-11-17 17:34:54 UTC
Permalink
Post by A-san
Post by Matthew Manderson
Post by A-san
Now how do I allow the image to expand so that it fits exactly into the
box and still retain the quality as it has now?
Well, if the original is 1024px x 768px and it's going to fit
_exactly_ in a 198px x 298px box, you're going to have to crop or
distort the image...
Post by A-san
Post by Matthew Manderson
Please start new threads with new questions.
Please reassure other busy TYPO3'rs that you have done the basic groundwork
yourself before asking for this non specific help.
This was my ORIGINAL question...
No it wasn't. The first appearance of any question in this thread to
deal with specific images--this thread was started with a question
about how to install IM--was the SEVENTH message.

<snip>
Post by A-san
There are no CSS problems that I know of, because before I did it fine
using the HTML pagecontent. Now I am using the Images Only pagecontent
and I am having problems.
Right. So once again I ask the same, tired question that I always ask
when actual output is different from intended output (and if you can't
provide this kind of information, no one CAN help you): what's the
DIFFERENCE between the two?

As I apparently have no choice but to repeat endlessly, if you can't
provide some amount of relevant detail in your questions you will get
no answers or poor answers (...and then no doubt complain about how
'unfriendly' the community is...)


<snip>
Post by A-san
So you are saying IM compression levels have something to do with the
fact that its scaling too small? If so, how do I alter this?
No. You asked about why the image was not crisp enough. Even _you_
can't keep track of what questions _you_ asked in this thread; now do
you see why it's a good idea to start a new thread for each new
question?

Anyway, if the default IM quality is too low, the results will be
fuzzy/blurry/indistinct. It's always hard to make good quality
thumbnails of screenshots even in photoshop/fireworks/gimp where you
have total control, so it's not going to be easy doing it on the
server.

And again, please fix the date on your computer the current age on
your thread in the archive is "-634 min".


-Christopher

Matthew Manderson
2005-11-15 09:51:32 UTC
Permalink
Post by A-san
Can someone tell me how I should find out if the program is worked
correctly?
Read my steps again.
Post by A-san
www.stratcommandcenter.com/redesign
If you are talking about your CivIV Section Opening! image then yes IM has
worked - the image is being called from your images folder and not directly
so some processing has occurred.
Post by A-san
Also, is there some guide on how I can use IM with Typo3?
Read the TYPO3 docs - 'TYPO3 by example' is a good place to start.
Post by A-san
For example its features, tools, etc. I hear there is a feature that
makes scaled down images look better, more crisp? For example, the
Is there a way to make that image look better quality, more crisp?
Read the Manual - there are useful functions like, blur, crisp etc that you
can define in your page content element when you use, text w image etc.
Have a look around.

In your install tool there are some default image settings like compression
levels etc.

Matthew
Loading...