close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Can I turn off the compression of images in PowerStore

Thread began 12/06/2012 11:32 am by tim299030 | Last modified 12/06/2012 4:53 pm by Jason Byrnes | 734 views | 7 replies |

tim299030

Can I turn off the compression of images in PowerStore

I uploaded all of my images via ftp to the imagesupload directory and imported all my records directly through mysql. All the images show up fine but on the detail pages (product_detail.php) the images are of much less quality that what I uploaded.

Is there a way to turn off the compression so that the images that I uploaded are the same quality as what I originally uploaded?

Thanks in advance for the help.

Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist/caching/CachedResize_Image.php file, try changing line 207:

php:
$process = $image_save_func($image_c, $save_path);



to:

php:
$process = $image_save_func($image_c, $save_path, 100);
Sign in to reply to this post

tim299030

Thank you, Jason. It worked. Two questions, though:

1) If I've already viewed a page with the image being reduced quality will it view it as the reduced quality? In other words, if it's been viewed once the old way does it need to be recached?

2) Does that work for the thumbnails as well or do I need to change the code somewhere else?

Tim

Sign in to reply to this post

Jason ByrnesWebAssist

1) Yes, if the image has already been cached once, it wont be recached unless you delete the cached copy

2) yes, thumbnails should work the same way.

Sign in to reply to this post

tim299030

where are the cached images stored?

what code should I look for to change the thumbnails?

Sign in to reply to this post

Jason ByrnesWebAssist

the cached images are stored in the webassist/plugins/catalog/scripts/image_cache/ folder

  what code should I look for to change the thumbnails?  


In what way do you want to change the thumbnails? Size? other? Thumbnails on the details page? other page?

Sign in to reply to this post

tim299030

So should I delete everything inside of the image_cache folder?

I just want the thumbnails to be the same quality as the original uploads.

Thanks again.

Sign in to reply to this post

Jason ByrnesWebAssist

yes, delete everything inside that folder to have the cached images regenerated. regenerating the cached images should fix the thumbnail quality too.

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