By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,009 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

Trying out Typo3 CMS ... no LZW GIF compression?

P: n/a
Hi there,

does anyone of you guys use Typo3?

I simply do not understand that there is no LZW GIF compression possible
in the GD dll shipped with PHP 5.2.2 (win32).
I assumed this DLL is newer than GDLib 2.0.33 but obviously I was wrong.

Typo3 detects the compression used as RLE, not LZW.
I know there were legal reasons in the past; but they did reimplement
GIF support back in 2.0.28.

This is what Typo3 writes:

"Your GDLib appears to have RLE compression
This assessment is based on the filesize from 'Create image from file'
test, which were 17002 bytes
If the image was LZW compressed you would expect to have a size of less
than 9000 bytes. If you open the image with Photoshop and saves it from
Photoshop, you'll a filesize like that.
The good news is (hopefully) that your [GFX][im_path_lzw] path is
correctly set so the gif_compress() function will take care of the
compression for you!"

-Andreas

May 22 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Andreas Eibach wrote:
Your GDLib appears to have RLE compression
This assessment is based on the filesize from 'Create image from file'
test, which were 17002 bytes
If the image was LZW compressed you would expect to have a size of less
than 9000 bytes. If you open the image with Photoshop and saves it from
Photoshop, you'll a filesize like that.
An 8-bit PNG would probably be 8000 bytes.

--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux
May 22 '07 #2

P: n/a

"Toby A Inkster" <us**********@tobyinkster.co.ukwrote:
Andreas Eibach wrote:
Your GDLib appears to have RLE compression
This assessment is based on the filesize from 'Create image from
file' test, which were 17002 bytes
If the image was LZW compressed you would expect to have a size of
less than 9000 bytes. If you open the image with Photoshop and saves
it
from Photoshop, you'll a filesize like that.

An 8-bit PNG would probably be 8000 bytes.
True, but this is not the point.
The point is that I do expect the (optional?) usage of the LZW algorithm
for GIFs inside the DLL shipped with PHP5 packages.
Why should they consider removing it when it is available in the
"regular" GDLib
package available at the web site? (which is useless for PHP though)

-Andreas

May 22 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.