close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Resize image from external url

Thread began 10/18/2010 9:52 am by siteontime | Last modified 7/06/2015 10:53 am by Ray Borduin | 6792 views | 12 replies |

siteontimeBeta Tester

Resize image from external url

This is an outstanding extension. It saves me a lot of time!

I have one question: This extension works perfectly if the image is on my server, however, I have an image server that hosts most of my images in the original resolution, the extension doesn't seem to work when I call the image from the external url.

In the link below, the brand logo is resized to the dimensions that it should be, but the product images below the logo are not resized. These images are hosted on a separate image server. Can you tell me what i am doing wrong, or if there is a work around for this?

ProductsDetail.php?SKU=PSB42YSXSS

Thanks for the help.

Sign in to reply to this post

Jason ByrnesWebAssist

Image Resizer uses the height or width attribute of the image tag.


your product images are shown without an empty height and width attribute:
<img width="" height="" class="image0" alt="" src="http://www.specsserver.com/CACHE/FRVTKWRKOYBR.JPG" style="opacity: 0.7;">

since the height and width are not specified, the image is not resized.

Sign in to reply to this post

siteontimeBeta Tester

Thanks - but the height and width are not empty in the code. See my code below:

<?php
if(TRUE){ // Begin Cached Resized Image: ImageCacheInstance_1287416098580
ob_start();
?>
<img src="<?php echo $row_rsimages['full_size_url']; ?>" alt="" class="image0" height="250" width="200" />
<?php
echo(getCachedResizedImageHTML(ob_get_clean(), "image_cache", "fit", "#FFFFFF", false));
} // End Cached Resized Image: ImageCacheInstance_1287416098580
?>

For some reason it is only empty when the page loads.

Sign in to reply to this post

Justin Nemeth

It could be due to a PHP setting. You might need to allow PHP to open http urls like this. Check this out: filesystem.configuration.php#ini.allow-url-fopen

Sign in to reply to this post

siteontimeBeta Tester

I already have those set to on in my htaccess file:

php_value allow_url_fopen on
php_value allow_url_include on

Sign in to reply to this post

Dave BuchholzBeta Tester

Jennifer,

try this instead:

php_value allow_url_fopen 1
php_value allow_url_include 1
Sign in to reply to this post

siteontimeBeta Tester

Thanks for the suggestion, but that didn't work. Something about the image resizer code is causing the height and width to be blank. If I remove these 2 lines of code, the height and width are displayed.

<?php
if(TRUE){ // Begin Cached Resized Image: ImageCacheInstance_1287416098580
ob_start();
?>

<?php
echo(getCachedResizedImageHTML(ob_get_clean(), "image_cache", "fit", "#FFFFFF", false));
} // End Cached Resized Image: ImageCacheInstance_1287416098580
?>

Sign in to reply to this post

Dave BuchholzBeta Tester

sorry about that, I know that using on instead of a boolean can cause issues and thought it was worth a try

Sign in to reply to this post

Ray BorduinWebAssist

I looked into this issue and it appears it does not currently work with remote images. I have made a fix to correct this problem and we will be getting a dot release out that will work properly. If you want a beta copy of that release before we go live, just send me an email directly to ray@webassist.com and I'll forward you the build when it is ready.

Sign in to reply to this post
Did this help? Tips are appreciated...

anonymous

This post has been deleted.

loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...