Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Support thread for the Image Magic contribution


tomjmul

Recommended Posts

ok, found the problem...

Just didn't read <_<

 

But 1 problem still exists, now there are no images..

I'm running on a windows server and created the thumbnails dir. I can see that there are some images in that dir. but the are not show on the site ??

 

kind regards,

P@rick

 

A lillte update for above, the images have now a 'new' name:

table_background_default.gif.thumb_119x80_1410f26233748342b11049e3a9038ce3.jpg

 

When I look at the image source on my webiste is shows:

http://www.mysite.com/catalog/

imagemagic.php?img=images/table_background_default.gif&w=119&h=80&page=

 

Anyone knows how to fix this problem ??

Link to comment
Share on other sites

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

my web site is http://hallmarcwebsites.com/osdemo/

Has any one found a way to get the graphic watermark to work?

I have the text and the border thing working, just the image watermark doesn't seem to be working.

 

Plus, is it my imagination or has Tom left the building. No post from him since Jan. 1, 2006

Edited by HallMarc
Link to comment
Share on other sites

what exactly have you removed in those lines scal? I do not see those line numbers having anything to do with image magic on my version so if you could list the functions you commented out it would be much appriciated

 

Hi Security Man,

 

In the file catalog/imagemagic.php I replaced this :

 

//add selected custom filters to the image

if (BRIGHTNESS_ADJUST != "0") adjust_brightness(&$tmp_img,BRIGHTNESS_ADJUST);

if (CONTRAST_ADJUST != "0") adjust_contrast(&$tmp_img, CONTRAST_ADJUST);

if ($image_watermark) watermark_image(&$tmp_img, DIR_FS_CATALOG.'includes/imagemagic/watermarks/'.WATERMARK_IMAGE ,WATERMARK_IMAGE_POSITION, WATERMARK_IMAGE_OPACITY, WATERMARK_IMAGE_MARGIN);

if ($frame) frame(&$tmp_img, FRAME_WIDTH, FRAME_EDGE_WIDTH, FRAME_COLOR, FRAME_INSIDE_COLOR1, FRAME_INSIDE_COLOR2);

if ($bevel) bevel (&$tmp_img, BEVEL_HEIGHT, BEVEL_HIGHLIGHT, BEVEL_SHADOW);

if ($text_watermark) watermark_text(&$tmp_img, WATERMARK_TEXT, WATERMARK_TEXT_SIZE, WATERMARK_TEXT_POSITION, WATERMARK_TEXT_COLOR, 'includes/imagemagic/fonts/'.WATERMARK_TEXT_FONT, WATERMARK_TEXT_OPACITY, WATERMARK_TEXT_MARGIN, WATERMARK_TEXT_ANGLE);

 

by this (I only commented these lines) :

 

//add selected custom filters to the image

// if (BRIGHTNESS_ADJUST != "0") adjust_brightness(&$tmp_img,BRIGHTNESS_ADJUST);

// if (CONTRAST_ADJUST != "0") adjust_contrast(&$tmp_img, CONTRAST_ADJUST);

// if ($image_watermark) watermark_image(&$tmp_img, DIR_FS_CATALOG.'includes/imagemagic/watermarks/'.WATERMARK_IMAGE ,WATERMARK_IMAGE_POSITION, WATERMARK_IMAGE_OPACITY, WATERMARK_IMAGE_MARGIN);

// if ($frame) frame(&$tmp_img, FRAME_WIDTH, FRAME_EDGE_WIDTH, FRAME_COLOR, FRAME_INSIDE_COLOR1, FRAME_INSIDE_COLOR2);

// if ($bevel) bevel (&$tmp_img, BEVEL_HEIGHT, BEVEL_HIGHLIGHT, BEVEL_SHADOW);

// if ($text_watermark) watermark_text(&$tmp_img, WATERMARK_TEXT, WATERMARK_TEXT_SIZE, WATERMARK_TEXT_POSITION, WATERMARK_TEXT_COLOR, 'includes/imagemagic/fonts/'.WATERMARK_TEXT_FONT, WATERMARK_TEXT_OPACITY, WATERMARK_TEXT_MARGIN, WATERMARK_TEXT_ANGLE);

 

Just to remember, the warning written directly into the image files (all images) was :

 

Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer.

 

So now I cannot use border or watermark because of this error, but it is working.

 

Best regards,

 

Scal

Link to comment
Share on other sites

Strange.. :blink:

 

In order to do watermarking its calling to function imagettfbbox().

 

imagettfbbox() is defined nowhere...

 

Fatal error: Call to undefined function: imagettfbbox() in /home/ssl128/public_html/cre/imagemagic.php on line 526

 

 

I searched for it through the code and nothing..

 

To bad.. Great contrib, could be perfect with watermarking support.

Link to comment
Share on other sites

Strange.. :blink:

 

In order to do watermarking its calling to function imagettfbbox().

 

imagettfbbox() is defined nowhere...

 

Fatal error: Call to undefined function: imagettfbbox() in /home/ssl128/public_html/cre/imagemagic.php on line 526

I searched for it through the code and nothing..

 

To bad.. Great contrib, could be perfect with watermarking support.

I looked through my working install of this mod and I looked through the mod files themselves and found nothing that relates to the error you are mentioning.

Link to comment
Share on other sites

Hi,

 

Strange.. :blink:

 

In order to do watermarking its calling to function imagettfbbox().

 

imagettfbbox() is defined nowhere...

 

To bad.. Great contrib, could be perfect with watermarking support.

 

googled it, seems to be a genuine php function, could be missing in Your install of php?

 

look: http://www.php.net/imagettfbbox

 

I think its a good idea generally to check phpinfo.php or in osc

yourshop/youradmin/server_info.php

for with what features Your php is installed if problems are arising.

 

kind regards Christoph

Link to comment
Share on other sites

OOOOPS!!!! My bad, need to remember to take a break when I get tired. I do see several calls for the function imagettfbbox and beerbee is correct :P it is part of the PHP lib and should be installed. Ask whoever manages the server your own if they can install it.

Link to comment
Share on other sites

Hi,

googled it, seems to be a genuine php function, could be missing in Your install of php?

 

look: http://www.php.net/imagettfbbox

 

I think its a good idea generally to check phpinfo.php or in osc

yourshop/youradmin/server_info.php

for with what features Your php is installed if problems are arising.

 

kind regards Christoph

 

Right... Sorry Tom... :blush:

 

My server installation was missing the FreeType library.

 

http://freetype.sourceforge.net/index2.html

Link to comment
Share on other sites

Thanks for the tips on server caching. My install wasn't working at all. Turned off server caching, and it's fine.

 

This option still will not work for me.

See my previous posts.

Anyone an idea ??

Link to comment
Share on other sites

I still cannot figure out why i have no pictures on my page, It is creating the cache, but it is not loading the pictures back when the page is viewed. All i get is red X's and place holders for pictures..... Can someone PLEASE help me out.

Link to comment
Share on other sites

URL please? I will look on Monday morning. See my demo at w w w dot hallmarcwebsites dot com/osdemo

 

Well i figured the part of not having images, I had to turn off Server Caching of thumbnails. But i would like to use that if it possible. Ill pm u the link as the website is not fully public yet.

Link to comment
Share on other sites

Hi,

 

I can't seem to get the watermark function to work at all.

 

If i enable the test watermark it breaks my images...if I enable the graphics watermark using the files supplied with the contribution i just get the images with no watermark, but it doesn't break the images at least.

 

Site is www DOT manotechsolutions DOT com

 

Let me know if you have any ideas...images apear to be using the imagemagic functionality...frames and bevels fine too..

 

stumped

 

Mark

Link to comment
Share on other sites

Can you remind me of the issue you are having LupuX?

Ok here it is, short version :blush:

I've installed the latest contribution off image magic: v1.13 with HTML validation

But it seems that there are no images are showing when i turn IM on.

 

The url of the image when turning IM on: /catalog/imagemagic.php?img=images/winkel/beach.jpg&w=106&h=80&page=

 

when turned of:

catalog/images/winkel/beach.jpg

 

I hope you can help me.

 

P@rick

Link to comment
Share on other sites

Ok here it is, short version :blush:

I've installed the latest contribution off image magic: v1.13 with HTML validation

But it seems that there are no images are showing when i turn IM on.

 

The url of the image when turning IM on: /catalog/imagemagic.php?img=images/winkel/beach.jpg&w=106&h=80&page=

 

when turned of:

catalog/images/winkel/beach.jpg

 

I hope you can help me.

 

P@rick

 

It usually has to do with the cache settings. Also go back to page one of this thread because I remember one thing about removing the admin function and see post #6

 

 

Hi,

 

I can't seem to get the watermark function to work at all.

 

If i enable the test watermark it breaks my images...if I enable the graphics watermark using the files supplied with the contribution i just get the images with no watermark, but it doesn't break the images at least.

 

Site is www DOT manotechsolutions DOT com

 

Let me know if you have any ideas...images apear to be using the imagemagic functionality...frames and bevels fine too..

 

stumped

 

Mark

 

I too am having a problem with the image watermark. Everything else works, text watermark and bevels etc. I wish the gentleman that wrote this mod would come back and offer some help. :rolleyes:

Link to comment
Share on other sites

Well i figured the part of not having images, I had to turn off Server Caching of thumbnails. But i would like to use that if it possible. Ill pm u the link as the website is not fully public yet.

Well, I can see the IM is working, your server seems to be a bit sluggish, other than that I can't be sure what coiuld be causing the problem. Sorry.

Link to comment
Share on other sites

Tooom, come back ;)

Thx Hallmarc...well at least you got the text watermark working...were there any tricks to getting the text to work?

I'm just getting myself familiar with these lib functions/classes that are being used in this mod. I just know that the text thing started working.

Title Value Action  
Image Magic Master Switch On   
Process Store's Graphics False   
Auto Clean Cache True   
Encrypt Image Filenames False   
Filename Encryption Key frodo369   
Apply Internet Explorer PNG Transparency work-around? True   
Use Resampling True   
Create Truecolour Thumbnails True   
Output GIFs as JPEGs False   
'GIF as JPEG' Matte colour (HEX) FFFFFF   
Cache Thumbnails on the Server True   
Cache Thumbnails in user's browser False   
Thumbnail Cache directory /thumbnails   
Use 404 Response if image not found? True   
Allow thumbnails larger than original False   
Center if thumbnail larger than original False   
JPEG Quality - Pop-up Images 100   
JPEG Quality - Product Information Thumbnails 100   
JPEG Quality - Category Thumbnails 100   
JPEG Quality - Heading Thumbnails 100   
JPEG Quality - Small Thumbnails 100   
Graphic Watermark in Pop-up Images Yes   
Graphic Watermark in Product Information Thumbnails No   
Graphic Watermark in Category Thumbnails No   
Graphic Watermark in Heading Thumbnails No   
Graphic Watermark in Small Thumbnails No   
Watermark Image File logo3.jpg   
Image Watermark Transparency 100   
Image Watermark Position Center   
Image Watermark Margin 10   
Resize Watermark Image False   
Text Watermark in Pop-up Images Yes   
Text Watermark in Product Information Thumbnails No   
Text Watermark in Category Thumbnails No   
Text Watermark in Heading Thumbnails No   
Text Watermark in Small Thumbnails No   
Watermark Text Sample   
Text Watermark Font Name michael.ttf   
Text Watermark Size 24   
Text Watermark Colour (HEX) 000000   
Text Watermark Transparency 70   
Text Watermark Position Bottom Left   
Text Watermark Margin 0   
Text Watermark Angle 40   
Auto Adjust Brightness 0   
Auto Adjust Contrast 0   
Frame Pop-up Images No   
Frame Product Information Thumbnails No   
Frame Category Thumbnails No   
Frame Heading Thumbnails No   
Frame Small Thumbnails No   
Frame Width 4   
Frame Depth 4   
Frame Colour (HEX) CCCCCC   
Frame Inside 3D Highlight Colour (HEX) FFFFFF   
Frame Inside 3D Shadow Colour (HEX) 000000   
Buttonize Pop-up Images No   
Buttonize Product Information Thumbnails No   
Buttonize Category Thumbnails No   
Buttonize Heading Thumbnails No   
Buttonize Small Thumbnails No   
Button Height 4   
Button Highlight Colour (HEX) CCCCCC   
Button Shadow Colour (HEX) 000000   
Last Hash (System Use - Read Only) 4efdc935dc900cb2cdeaa9a9c858056f   
Image Magic Master Switch 


Switch OSC Image Magic on or off

 

and in Configuration->Images

 

Title Value Action  
Small Image Width 100   
Small Image Height 80   
Heading Image Width 57   
Heading Image Height 40   
Subcategory Image Width 90   
Subcategory Image Height 70   
Calculate Image Size true   
Image Required true   
Enable Additional Images? Enable   
Additional Image Thumbnail Width 105   
Additional Image Thumbnail Height 75   
Product Information Image Width 120   
Product Information Image Height 80

 

I do have to say that I have the More Pics mod installed too and I rewrote the code to work like I want it to.

Link to comment
Share on other sites

Grrr... the Quick edit works the quick edit doesn't work

 

Anyway, Also, for those of you trying to use the cache function, you need to make sure you have a thumbnail folder in your catalog folder and CHMOD (set permissions) to 777.

Link to comment
Share on other sites

Hi,

I have some problem. I installed this contribution (image magic) and I see my admin with the changement. But when I want to go on my catalog..... NOTHING!

 

I installed the lastest version posted on november 2005.

 

If somebody know this specific error....

 

xavier

Link to comment
Share on other sites

Hi,

I have some problem. I installed this contribution (image magic) and I see my admin with the changement. But when I want to go on my catalog..... NOTHING!

 

I installed the lastest version posted on november 2005.

 

If somebody know this specific error....

 

xavier

Go back to page one of this thread and start reading.

Link to comment
Share on other sites

I now understand why this contribution is so friggin confusing. The developer of this contribution has named it image magic which, to those of us that are somewhat well versed in PHP is another image manipulation package like GD, only it is spelled ImageMagick with a k.

 

This contribution is based on the GD image package and not ImageMagick(which is the better one). I have been pulling my hair out trying to figure this mod out! Now that I know where to look I can try to find a solution as to why the graphic watermarking isn't working. THen I will write a true ImageMAgick mod for osCommerce.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...