Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Thumbnail plugin: no TIF / BMP support?
https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=3185
Page 1 of 1

Author:  jharder [ 13. Dec 2011, 16:27 ]
Post subject:  Thumbnail plugin: no TIF / BMP support?

Hi,

I integrated the thumbnail plugin in TFU (Version 2.15), but TIF and BMP images will not be converted?
What is it? Any suggestions?

Regards,
Jörg

Author:  TinyWebGallery [ 13. Dec 2011, 18:21 ]
Post subject:  Re: Thumbnail plugin: no TIF / BMP support?

By default gdlib is used. This library does not support this formats.

But I could check if I can do this with image magic.

- Michael

Author:  jharder [ 14. Dec 2011, 11:40 ]
Post subject:  Re: Thumbnail plugin: no TIF / BMP support?

Hi Michael,

I successfully installed ImageMagick on my Xampp system and converting of all formats except TIF is working within your plugin.
Within TIF processing the function "resize_file" creates 3 files (call: resize_file($new_file, 120, 80, basename($new_file));):
"origfilename_thumb.jpg" -> original filesize 1280 x 1024
"origfilename_thumb-0.jpg" -> 120 x 96
"origfilename_thumb-1.jpg" -> 120 x 90

:? :?

Regards,
Jörg

P.S.: Kannst auch auf deutsch antworten, ist vielleicht einfacher... ;)

Author:  jharder [ 14. Dec 2011, 11:43 ]
Post subject:  Re: Thumbnail plugin: no TIF / BMP support?

Addendum:

settings in "tfu_config.php" for activation of Image Magick:

$use_image_magic = true;
$image_magic_path = 'convert';
$check_image_magic = false;

Author:  TinyWebGallery [ 14. Dec 2011, 14:47 ]
Post subject:  Re: Thumbnail plugin: no TIF / BMP support?

The file is resized but the extension is hardcoded in the plugin.
you simply have to make this dynamic.

- Michael

Author:  jharder [ 15. Dec 2011, 09:58 ]
Post subject:  Re: Thumbnail plugin: no TIF / BMP support?

Hi,

hmmm....
Hardcoded OK, but why does it work with jpg, png,... and not with TIF?

Example:
tDOCT_00044_00003.jpg (3008x2000) -> tDOCT_00044_00002_thumb.jpg (120x80)
tDOCT_00044_00001.png (1280x1024) -> tDOCT_00044_00001_thumb.jpg (120x96)
tDOCT_00044_00006.tif (1280x1024) -> tDOCT_00044_00006_thumb.jpg (1280x1024); tDOCT_00044_00006_thumb-0.jpg (120x96); tDOCT_00044_00006_thumb-1.jpg (120x90)
?????

Is there any filesize-limitation? tDOCT_00044_00006.tif is about 3.9MB

Jörg

Author:  TinyWebGallery [ 15. Dec 2011, 11:59 ]
Post subject:  Re: Thumbnail plugin: no TIF / BMP support?

what are the generated files? Are they brocken?
and why do you have 2 of them.

- Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/