Jump to content
Sign in to follow this  
tomjmul

Support thread for the Image Magic contribution

Recommended Posts

I am trying to install this wonderful contrib and I am receiving this error when I try to access my store.

 

Parse error: parse error, unexpected '}' in /home/horsepow/public_html/includes/functions/html_output.php on line 227

 

Here is my code from the html_output.php file

 

<?php

/*

$Id: html_output.php,v 1.56 2003/07/09 01:15:48 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

////

// The HTML href link wrapper function

function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {

global $request_type, $session_started, $SID;

 

if (!tep_not_null($page)) {

die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');

}

 

if ($connection == 'NONSSL') {

$link = HTTP_SERVER . DIR_WS_HTTP_CATALOG;

} elseif ($connection == 'SSL') {

if (ENABLE_SSL == true) {

$link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG;

} else {

$link = HTTP_SERVER . DIR_WS_HTTP_CATALOG;

}

} else {

die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>');

}

 

if (tep_not_null($parameters)) {

$link .= $page . '?' . tep_output_string($parameters);

$separator = '&';

} else {

$link .= $page;

$separator = '?';

}

 

while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);

 

// Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined

if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) {

if (tep_not_null($SID)) {

$_sid = $SID;

} elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) {

if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) {

$_sid = tep_session_name() . '=' . tep_session_id();

}

}

}

 

if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) {

while (strstr($link, '&&')) $link = str_replace('&&', '&', $link);

 

$link = str_replace('?', '/', $link);

$link = str_replace('&', '/', $link);

$link = str_replace('=', '/', $link);

 

$separator = '?';

}

 

if (isset($_sid)) {

$link .= $separator . $_sid;

}

 

return $link;

}

 

////

// The HTML image wrapper function

// BOF Image Magic

function tep_image($src, $alt = '', $width = '', $height = '', $params = '') {

global $product_info;

 

//Allow for a new intermediate sized thumbnail size to be set

//without any changes having to be made to the product_info page itself.

//(see the lengths I go to to make your life easier :-)

if (strstr($_SERVER['PHP_SELF'],"product_info.php")) {

 

if (isset($product_info['products_image'])

&& $src == DIR_WS_IMAGES . $product_info['products_image']

&& $product_info[products_id]==$_GET['products_id']) { //final check just to make sure that we don't interfere with other contribs

$width = PRODUCT_INFO_IMAGE_WIDTH == 0?'':PRODUCT_INFO_IMAGE_WIDTH;

$height = PRODUCT_INFO_IMAGE_HEIGHT == 0?'':PRODUCT_INFO_IMAGE_HEIGHT;

$product_info_image=true;

$page="prod_info";

}

}

 

//Detect whether this is a pop-up image

if (strstr($_SERVER['PHP_SELF'],"popup_image.php")) $page="popup";

 

//do we apply the IE PNG alpha transparency fix?

if (strstr(strtolower($src),".png") && CFG_PNG_BUG=="True") $fix_png = true;

 

//send the image for processing unless told otherwise

$image = '<img src="' . $src . '"'; //set up the image tag just in case we don't want to process

if (CFG_MASTER_SWITCH=="On") $calculate = true;

else $calculate=false;

 

// Don't calculate if the image is set to a "%" width

if (strstr($width,'%') == true || strstr($height,'%') == true) $calculate = false;

 

// Dont calculate if a pixel image is being passed (hope you dont have pixels for sale)

if (strstr($image, 'pixel')) $calculate = false;

 

 

$image_size = @getimagesize($src);

 

 

// Decide whether or not we want to process this image

if (($width == '' && $height == '' && $page != 'popup' ) || ($width == $image_size[0] && $height == $image_size[0] && $page != 'popup')) {

if (CFG_PROCESS_GRAPHICS=="False") $calculate = false; //looks like this is a store graphic rather than product image

}

 

// Is this image good to go?

if (CONFIG_CALCULATE_IMAGE_SIZE && $calculate) {

 

if ($image_size) {

 

$ratio = $image_size[1] / $image_size[0];

 

// Set the width and height to the proper ratio

if (!$width && $height) {

$ratio = $height / $image_size[1];

$width = intval($image_size[0] * $ratio);

} elseif ($width && !$height) {

$ratio = $width / $image_size[0];

$height = intval($image_size[1] * $ratio);

} elseif (!$width && !$height && !$over_ride) {

$width = $image_size[0];

$height = $image_size[1];

}

 

//Encrypt the image filename if switched on

if (CFG_ENCRYPT_FILENAMES == "True" && CFG_ENCRYPTION_KEY !="") {

$result = '';

$key=CFG_ENCRYPTION_KEY;

for($i=0; $i<strlen($src); $i++) {

$char = substr($src, $i, 1);

$keychar = substr($key, ($i % strlen($key))-1, 1);

$char = chr(ord($char)+ord($keychar));

$result.=$char;

}

$src=urlencode(base64_encode($result));

}

 

//Return the html

$image = '<img src="imagemagic.php?img='.$src.'&w='.

tep_output_string($width).'&h='.tep_output_string($height).'&page='.$page.'"';

 

} elseif (IMAGE_REQUIRED == 'false') {

return false;

}

}

 

//If the size asked for is greater than the image itself, we check the configs to see if this is allowed and if not over-ride

if ($width > $image_size[0] || $height > $image_size[1]) {

if (CFG_ALLOW_LARGER != 'True'){

$width=$image_size[0];

$height=$image_size[1];

$over_ride = true;

}

}

// Add remaining image parameters if they exist

if ($width) {

$image .= ' width="' . tep_output_string($width) . '"';

}

 

if ($height) {

$image .= ' height="' . tep_output_string($height) . '"';

}

 

if (tep_not_null($params)) $image .= ' ' . $params;

 

$image .= ' border="0" alt="' . tep_output_string($alt) . '"';

 

if (tep_not_null($alt)) {

$image .= ' title="' . tep_output_string($alt) . '"';

}

 

if ($fix_png && CFG_MASTER_SWITCH=="On") {

$image .= ' onload="fixPNG(this)"';

}

 

$image .= '>';

return $image;

}

//EOF Image Magic

// alt is added to the img tag even if it is null to prevent browsers from outputting

// the image filename as default

$image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';

 

if (tep_not_null($alt)) {

$image .= ' title=" ' . tep_output_string($alt) . ' "';

}

 

if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) {

if ($image_size = @getimagesize($src)) {

if (empty($width) && tep_not_null($height)) {

$ratio = $height / $image_size[1];

$width = $image_size[0] * $ratio;

} elseif (tep_not_null($width) && empty($height)) {

$ratio = $width / $image_size[0];

$height = $image_size[1] * $ratio;

} elseif (empty($width) && empty($height)) {

$width = $image_size[0];

$height = $image_size[1];

}

} elseif (IMAGE_REQUIRED == 'false') {

return false;

}

}

 

if (tep_not_null($width) && tep_not_null($height)) {

$image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';

}

 

if (tep_not_null($parameters)) $image .= ' ' . $parameters;

 

$image .= '>';

 

return $image;

}

 

////

// The HTML form submit button wrapper function

// Outputs a button in the selected language

function tep_image_submit($image, $alt = '', $parameters = '') {

global $language;

 

$image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';

 

if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';

 

if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;

 

$image_submit .= '>';

 

return $image_submit;

}

 

////

// Output a function button in the selected language

function tep_image_button($image, $alt = '', $parameters = '') {

global $language;

 

return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters);

}

 

////

// Output a separator either through whitespace, or with an image

function tep_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') {

return tep_image(DIR_WS_IMAGES . $image, '', $width, $height);

}

 

////

// Output a form

function tep_draw_form($name, $action, $method = 'post', $parameters = '') {

$form = '<form name="' . tep_output_string($name) . '" action="' . tep_output_string($action) . '" method="' . tep_output_string($method) . '"';

 

if (tep_not_null($parameters)) $form .= ' ' . $parameters;

 

$form .= '>';

 

return $form;

}

 

////

// Output a form input field

function tep_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) {

$field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'.($type = 'text' ? '' : '');

 

if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {

$field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"';

} elseif (tep_not_null($value)) {

$field .= ' value="' . tep_output_string($value) . '"';

}

 

if (tep_not_null($parameters)) $field .= ' ' . $parameters;

 

$field .= '>';

 

return $field;

}

 

////

// Output a form password field

function tep_draw_password_field($name, $value = '', $parameters = 'maxlength="40"') {

return tep_draw_input_field($name, $value, $parameters, 'password', false);

}

 

////

// Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field()

function tep_draw_selection_field($name, $type, $value = '', $checked = false, $parameters = '') {

$selection = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';

 

if (tep_not_null($value)) $selection .= ' value="' . tep_output_string($value) . '"';

 

if ( ($checked == true) || ( isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) && ( ($GLOBALS[$name] == 'on') || (isset($value) && (stripslashes($GLOBALS[$name]) == $value)) ) ) ) {

$selection .= ' CHECKED';

}

 

if (tep_not_null($parameters)) $selection .= ' ' . $parameters;

 

$selection .= '>';

 

return $selection;

}

 

////

// Output a form checkbox field

function tep_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '') {

return tep_draw_selection_field($name, 'checkbox', $value, $checked, $parameters);

}

 

////

// Output a form radio field

function tep_draw_radio_field($name, $value = '', $checked = false, $parameters = '') {

return tep_draw_selection_field($name, 'radio', $value, $checked, $parameters);

}

 

////

// Output a form textarea field

function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {

$field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"';

 

if (tep_not_null($parameters)) $field .= ' ' . $parameters;

 

$field .= '>';

 

if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {

$field .= stripslashes($GLOBALS[$name]);

} elseif (tep_not_null($text)) {

$field .= $text;

}

 

$field .= '</textarea>';

 

return $field;

}

 

////

// Output a form hidden field

function tep_draw_hidden_field($name, $value = '', $parameters = '') {

$field = '<input type="hidden" name="' . tep_output_string($name) . '"';

 

if (tep_not_null($value)) {

$field .= ' value="' . tep_output_string($value) . '"';

} elseif (isset($GLOBALS[$name])) {

$field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"';

}

 

if (tep_not_null($parameters)) $field .= ' ' . $parameters;

 

$field .= '>';

 

return $field;

}

 

////

// Hide form elements

function tep_hide_session_id() {

global $session_started, $SID;

 

if (($session_started == true) && tep_not_null($SID)) {

return tep_draw_hidden_field(tep_session_name(), tep_session_id());

}

}

 

////

// Output a form pull down menu

function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) {

$field = '<select name="' . tep_output_string($name) . '"';

 

if (tep_not_null($parameters)) $field .= ' ' . $parameters;

 

$field .= '>';

 

if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]);

 

for ($i=0, $n=sizeof($values); $i<$n; $i++) {

$field .= '<option value="' . tep_output_string($values[$i]['id']) . '"';

if ($default == $values[$i]['id']) {

$field .= ' SELECTED';

}

 

$field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''')) . '</option>';

}

$field .= '</select>';

 

if ($required == true) $field .= TEXT_FIELD_REQUIRED;

 

return $field;

}

 

////

// Creates a pull-down list of countries

function tep_get_country_list($name, $selected = '', $parameters = '') {

$countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));

$countries = tep_get_countries();

 

for ($i=0, $n=sizeof($countries); $i<$n; $i++) {

$countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);

}

 

return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters);

}

?>

Share this post


Link to post
Share on other sites

(sorry for the duplicate post... I didn't respond in the correct thread)

 

Great contribution. Here are some suggestions for improvement:

 

- Add a sharpening option

- Resize images this way: Set max height or width (make one zero). When resizing images determine if the original image is longer/wider. Make the longer or wider side what is set as max Height or Width. With the current setup, if one image is really wide and one image is really long, the product catalog page looks whacked out... Here's an example

 

Sorry if this has been discussed before... didn't have time to read through 35 pages of messages.

Share this post


Link to post
Share on other sites
Ok, I just had to read a little better, I the drop down menus for watermark and text to stop faulting..

But now when the drop down comes down, there is nothing in the selections..

It has the menu, but nothing to select, the fonts are there, and the watermarks are there, in the directory

but I can't get them to load to the menu so I can select them.

Sorry for my lack of knowledge with php. And thanks again in advance...

John

 

And what is the solutions for this, I read all the posts, but couldn't find it. I still get this error:

 

Fatal error: Call to undefined function: tep_cfg_pull_down_installed_fonts() in /users/pcmania/public_html/admin/configuration.php(125) : eval()'d code on line 1

 

when I try to select 'Text Watermark Font Name' in the admin area.

Share this post


Link to post
Share on other sites

i have a question that is prob the most important.. i have a large serve rload on a medium size store. and it is directly related to image magic. i dont use it to process store graphics and i have cache thumbnails set to true. and as soon as i disable this contrib and watch my admin on server load goes down bigtime... is the problem just the code? or possible something else directly related?


Check out my fully customized oscommerce site by viewing my profile.

Share this post


Link to post
Share on other sites
i have a question that is prob the most important.. i have a large serve rload on a medium size store. and it is directly related to image magic. i dont use it to process store graphics and i have cache thumbnails set to true. and as soon as i disable this contrib and watch my admin on server load goes down bigtime... is the problem just the code? or possible something else directly related?

 

Have you checked this post just above ? : http://forums.oscommerce.com/index.php?s=&...st&p=903420

Edited by Celluloid

Share this post


Link to post
Share on other sites

Eric

so what I did was I deleted out the imagecreatefromjpeg and imagejpeg calls and after the header() call I put in the following:

 

$push_file = fopen($filename,'r');

while (!feof($push_file)) {

print(fread($push_file, 1024));

flush();

@ob_flush();

}

fclose($push_file);

could you please give the complete code with your changes?

Thank you!

Kind regards

G?tz

Share this post


Link to post
Share on other sites

Ever since I installed this, all product images in the admin section no longer show, like when previewing and item, or when you highlight an item it shows a little thumbnail, and even in other mods that are supposed to have product images. Is this because of this contrib, or because I screwed something up?

Share this post


Link to post
Share on other sites
Ever since I installed this, all product images in the admin section no longer show, like when previewing and item, or when you highlight an item it shows a little thumbnail, and even in other mods that are supposed to have product images. Is this because of this contrib, or because I screwed something up?

 

Well if the only modifications you did was installing this contribution, there might be, indeed, a problem somewhere : have you followed the installation process carefully and checked errr... what needs to be checked ? (thumbnails generation directory, rights on this directory, etc)

 

PS : I was tempted for a few secondes to answer you by a :

" 'Welcome to the official support thread for the " 'Screw Image' Magic " contribution !

- oh damn ! I installed the wrong one ! "

Share this post


Link to post
Share on other sites

Imagemagic has been working great for me on the customer side, however I have a few broken images on the admin side. I'd like to know how to resolve this problem as it effects my invoices(i have to turn imagemagic OFF to get my logo on the invoices). When looking closely at the images specs it just point to a directory, not to the image, I right clicked and selected, "View Image" and i got : "No input file specified". This is only on two images, but one of those is the logo and it's important. How do I go about fixing this? I poured through the instructions again with no progress.


We must be the change we wish to see in the world.

------------------------------------------------------------

p.s. BACKUP!

Share this post


Link to post
Share on other sites
ok, i check my install, all is done:

 

-gd is installed (i see it on list of tools/server_info in the admin side)

-replacement text in html_output.php is done like dj07 said to do it

-imagemagic is working because it appears in url of product images

-thumbnails images are created, i see them in "/catalog/thumbnails" directory

 

but product images (generate by "tep_image" function) still don't appear in the client side

 

i guess that "&" in images url aren't interpreted but i'm not shure.

there is an example of url for image "octane_2.jpg":

http://localhost/catalog/imagemagic.php?im...;page=prod_info

 

and the thumbnails associates with is : octane_2.jpg.thumb_prod_infoprod_info_100x25_322020c9c3bddd45a251fc65c2d0e980.jp

g

Somebody no what is the problem?

 

thanks for all,

 

i had the same issue...

the thumbnails is generated, but doesn't show :( even if i turn off the cache, doesnt show.. the only way i get working the images is when i turn off the entire imagemagic

 

http://www.rigam.cl/catalogo/imagemagic.ph...;page=prod_info

http://www.rigam.cl/catalogo/thumbnail/ima...99dc2ca0faa.jpg

 

what can i do?

Share this post


Link to post
Share on other sites
i had the same issue...

the thumbnails is generated, but doesn't show :( even if i turn off the cache, doesnt show.. the only way i get working the images is when i turn off the entire imagemagic

 

http://www.rigam.cl/catalogo/imagemagic.ph...;page=prod_info

http://www.rigam.cl/catalogo/thumbnail/ima...99dc2ca0faa.jpg

 

what can i do?

 

 

Yep and I want to join the 'cannot get this contribution working' club too :'(

 

I have rechecked everything my inexperienced little brain can and searched the forums til cross eyed but finally just turned the thing off to get my pics back :(

 

BUT I want it to work!!!! I keep checking this thread so have now added my voice so I can get email notification. Good luck.

Share this post


Link to post
Share on other sites

Hi,

 

First: thanks for this very useful contrib.

Downloaded it an hour ago, installed it and it works fine (no probs at all).

 

I do have a concern regarding the watermark function.

I've installed OSC on a home (not web connected) server to build and test a store stat will be selling HQ prints of photos. For that on the fly watermarking is a must.

 

All pics on the site show the watermark logo and text as set up in the admin part.

 

The thing is, when I tried to avoid watermarking and downloading the non-watermarked images I succeeded in doing that by copying the image properties (right-mouse) of the pop-up image to a new browser window.

 

The only thing I had to do was remove the ?&page=popup? parameter.

So if you have a pop-up image with the url:

http:www.yoursite.com/catalog//imagemagic.php?img=images/test.jpg&w=700&h=300&page=popup

it gets watermarked.

 

When you next change the url (in that same window) to

http:www.yoursite.com/catalog//imagemagic.php?img=images/test.jpg&w=700&h=300

(remove &page=popup) the watermark is gone.

 

I don't know if this is a bug or the result of a wrong server setting, but I think it's clear that this behavior is undesired for my store.

 

Any suggestions on how to solve this?

 

Thanks,

 

Mario

Share this post


Link to post
Share on other sites

Hi

 

I asked this a few months ago, got no answer, so I repost:

 

How to call this remarkable unsharp mask function from Imagemagic to have control on the image resharpening on the products thumbnails?

 

http://vikjavev.no/computing/ump.php

 

Thanks for any tip!

Share this post


Link to post
Share on other sites

Installed this contribution twice and got nothing but a blank page when going to starting page. Any ideas what's wrong?

 

I have gd.

Edited by aapinen

Share this post


Link to post
Share on other sites

trax - that is what "encrypted" filenames are for under admin. HOWEVER, it should be noted that as far as I can tell imagemagic is NOT a suitable replacement for a real download management package. it is basing everything off of an image that is free and in the clear. you can turn on filename encryption and even modify the package so it leaves filename encryption on and watermarking off for logged in users, however there is no real way to "distribute" the file with image magic.

 

if I were you I would leave watermarking turned on at all times (as well as filename encryption if protecting the pictures is required). I would then have the picture stored in two different places. One place where image magic can find it for display, and another place where a real downloadable content manager will be able to package up a non-watermarked copy for download by customers. this is IMHO the only way to truly protect your content as you are describing. to further protect things I would have your originals that image magic is using in kind of a dense directory structure and/or have different names than their downloadable counterparts. if they had the same names and, say, were all located in /images/ some unscrupulous person could just download a few pictures, get your naming structure under order, and then just try to bulk download using sequencing from /images/.

Share this post


Link to post
Share on other sites

i found this, the same text shows in the imagemagic.php output and in the image.thumb but in the IM output appears 17 empty lines at the start of the file :S

Edited by FitoDotNET

Share this post


Link to post
Share on other sites

Thanks for your replay, Borghe.

 

You wrote:

this is IMHO the only way to truly protect your content as you are describing.

 

IMHO this isn't the case.

I think Imagemagic should always check the database settings for watermarking before outputting an image to a 'client'. In addition the images should be stored in a non web-accessible directory so only by using Imagemagic the picture can be seen.

This way scrambling is not required and images are always watermarked (and optionally down sampled) by Imagemagic.

Preferably Imagemagic should also have some configurable defaults that are applied when no height, width and page parameters are passed in the url.

 

FYI,

My site will not offer downloads, but printed copies of the HQ-photos.

To reduce manual down sampling and watermarking (before upload) Imagemagic seemed a good solution, but I need 100% security against 'backdoor downloading'.

Share this post


Link to post
Share on other sites

sorry. I thought you meant offering photos for download. yes, if you are offering them for sale printed, then imagemagic is certainly able to handle things. just have both filename encryption and watermarking turned on. they will still have unlimited access to the watermarked pictures (unless you have inventory browsing turned off for unregistered users) but at least they won't have any access to the non-watermarked pics.

Share this post


Link to post
Share on other sites

Borghe,

 

I switched on encryption (and the filenames are indeed encrypted now) but I'm still able to download the full-size images by copying the image properties of an image in a "view lager image" pop-up and removing the the heigth, width and page parameters before pasting it into a new browser window.

 

It seems that image magic is just parsing the full-size image if no parameters are given for heigth, width and page. For that reason I can't use Imagemagic unless it at all times watermarks and down-samples the output.

 

Any other suggestions?

Share this post


Link to post
Share on other sites
Borghe,

 

I switched on encryption (and the filenames are indeed encrypted now) but I'm still able to download the full-size images by copying the image properties of an image in a "view lager image" pop-up and removing the the heigth, width and page parameters before pasting it into a new browser window.

 

It seems that image magic is just parsing the full-size image if no parameters are given for heigth, width and page. For that reason I can't use Imagemagic unless it at all times watermarks and down-samples the output.

 

Any other suggestions?

 

If you really want to protect your images watermak in Photoshop (yes, that's some work) and use www.digimarc.com

Share this post


Link to post
Share on other sites

I have done all correct!!But the images in my store does not display !

I have change the path in configure.php and not result !

 

To note: My store is in the root directory, I do not have a "catalog" directory - however I didn't notice anything under the code that was edited that pointed to a catalog directory.

 

An example of an image link shows as follows:

 

http://www.atualoja.com/imagemagic.php?img...;h=78&page=

 

All of the product images are now showing as a broken image.

 

Any ideas how to fix this?

thanks in advanced

Share this post


Link to post
Share on other sites
[...]

 

An example of an image link shows as follows:

 

http://www.atualoja.com/imagemagic.php?img...;h=78&page=

 

All of the product images are now showing as a broken image.

 

Any ideas how to fix this?

thanks in advanced

 

The link you gave shows an image containing the full URL.

I would look for a "echo $_SERVER['PHP_SELF'];" or a "echo $PHP_SELF;" or any kind of "echo /SOMETHING/;" in imagemagic.php an try to comment it ...

Share this post


Link to post
Share on other sites

Switch OSC Image Magic is now ON at http://www.atualoja.com and all of the product images are now showing as a broken image.

I search for anything in imagemagic.php with the word "echo" but no results !

Any ideas now ? take a look at my site to understand the problem ...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×