Post by pm-netti » Wed Nov 02, 2016 9:07 pm

Nordikota wrote:I have. I tried it with a fresh OC install & no themes/mods installed. Same problem :-\
This is admin/model/tool/image.php lines 3 and 32-38:

Code: Select all

public function resize($filename, $width, $height) {

  .............

 if ($width_orig != $width || $height_orig != $height) {
				$image = new Image(DIR_IMAGE . $image_old);
				$image->resize($width, $height);
				$image->save(DIR_IMAGE . $image_new);
} else {
				copy(DIR_IMAGE . $image_old, DIR_IMAGE . $image_new);
}
This image resize is not work.

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by Nordikota » Thu Nov 03, 2016 12:41 am

Nope. it doesn't work :-\

What if I replaced this

Code: Select all

			if ($width_orig != $width || $height_orig != $height) {
				$image = new Image(DIR_IMAGE . $image_old);
				$image->resize($width, $height);
				$image->save(DIR_IMAGE . $image_new);
			} else {
				copy(DIR_IMAGE . $image_old, DIR_IMAGE . $image_new);
With this:

Code: Select all

				$image = new Image(DIR_IMAGE . $image_old);				
				$image->resize($width, $height);
				$image->save(DIR_IMAGE . $image_new);
So it doesn't check the original image and just re-sizes it. Would that work?

Active Member

Posts

Joined
Tue Feb 11, 2014 8:04 pm

Post by pm-netti » Thu Nov 03, 2016 1:01 am

Can you check, is you vqmod or ocmod modification files to admin file model/tool/image.php or controller/catalog/product.php, you see folders vqmod/vqcache and system/storage/modification.

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by Nordikota » Thu Nov 03, 2016 5:44 pm

In the VQmod cache I have "vq2-admin_controller_catalog_product.php" and "vq2-admin_model_tool_image.php".

I assume this means that something is changing these files? Is there a way of finding out which one, or do I simply disable them one at a time until it works?

Active Member

Posts

Joined
Tue Feb 11, 2014 8:04 pm

Post by pm-netti » Thu Nov 03, 2016 9:09 pm

Nordikota wrote:In the VQmod cache I have "vq2-admin_controller_catalog_product.php" and "vq2-admin_model_tool_image.php".

I assume this means that something is changing these files? Is there a way of finding out which one, or do I simply disable them one at a time until it works?
Your need remove these files and their xml file from folder vqmod/xml.

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by Nordikota » Thu Nov 03, 2016 11:03 pm

I've spent all morning removed all the VQMod XML files, and cleaned the image/vqmod/browser cache. Put them back in 1 at a time, cleaning the image/vqmod/browser cache and testing at each stage. I think I may have found the MOD that is causing the error.

My confusion was that I was not clearing all of the caches each time and OC was using whatever file it found there. Some were right & some had been saved without re-sizing.

Thank you for helping point me in the right direction. it's not fixed, but I think I know where the problem lies ;D

Active Member

Posts

Joined
Tue Feb 11, 2014 8:04 pm
Who is online

Users browsing this forum: No registered users and 9 guests