close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Image Resizer and PowerCMS2

Thread began 10/19/2010 6:39 am by paypal336679 | Last modified 10/19/2010 4:39 pm by Ray Borduin | 1355 views | 7 replies |

paypal336679

Image Resizer and PowerCMS2

Is it possible to use Image Sizer in the following way? Clients currently use PowerCMS2 to upload images to their websites. If these images are large, say 1200x1600 pixles 3MB, then the pictures do appear on the website but even when scaled down to say 120 x 160 pixels the file size of the image is still 3MB. Can Image Resizer be used to allow these PowerCMS2 client uploaded images to be automatically resized?

I ask because some clients find it hard to cope with resizing images prior to updating with PowerCMS and automatic resizing would make everything far easier.

Sign in to reply to this post

Ray BorduinWebAssist

Yes, it can be used for that.

Sign in to reply to this post

paypal336679

Thanks, that is good news. However, I cannot get it to work and cannot see a help section on it.

I have <?php require_once( "webassist/caching/CachedResize_Image.php" ); ?> at the head of the .php page


Then in the page body

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

<?php include('/home/sites/stuffandsew.co.uk/public_html/cmsupdate/WA_CMS/addtosite.php'); echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'robert', 'Content', false); ?>

<?php
echo(getCachedResizedImageHTML(ob_get_clean(), "image_cache", "stretch", "", false));
} // End Cached Resized Image: ImageCacheInstance_1287481215749
?>

The webassist folder is uploaded.

The images sent up tthrough PowerCMS2 do not seem to resize. If I add a normal image to the webspage using Dreamweaver then it does resize.

I am obvioussly missing a trick somewhere. Can you point me in the right direction?

Sign in to reply to this post

Ray BorduinWebAssist

That should work. Do you have a sample URL where I can look at it?

Sign in to reply to this post

paypal336679

Test URL

The PowerCMS2 - Image Resizer combination is on this sample page

robert2.php

The image although small in physical size is downloading at 658kb

Could it be the way PowerCMS2 is displaying the width and height information?

<img hspace="30" alt="IMG_0803.JPG" align="left" style="width: 90px; height: 162px" src="/cmsupdate/files/IMG_0803.JPG">

Sign in to reply to this post

Ray BorduinWebAssist

Yes... it is because you are using:

style="width 90px; height: 162px"

instead of:

width="90" height="162"

I'll log this as a feature request that we can try to address in the next dot release.

Sign in to reply to this post

paypal336679

The width heigth issue

Whilst awaiting your dot release of Image Resizer to address this snag is there anything I can do to make PowerCMS2 and Image Resizer work together now. Is there a way that PowerCMS2 can output the appropriate version of this code to suit the needs of Image Resizer i.e the appropriate version of

<img hspace="30" alt="IMG_0803.JPG" align="left" style="width: 90px; height: 162px" src="/cmsupdate/files/IMG_0803.JPG">

I presume this would be

<img hspace="30" alt="IMG_0803.JPG" align="left" width="90" height="162" src="/cmsupdate/files/IMG_0803.JPG">

Sign in to reply to this post

Ray BorduinWebAssist

Send me an email at ray@webassist.com and I'll send you the update necessary to fix this issue.

Sign in to reply to this post

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...