Zen Cart Logo
Forums / All Other Contributions/Addons / AJAX IMAGE Swapper support thread

AJAX IMAGE Swapper support thread

Views: 172,482

Results 381 to 400 of 786
21 Nov 2008, 9:20 AM
#381
greydawgjr avatar

greydawgjr

New Zenner

Join Date:
May 2008
Posts:
65
Plugin Contributions:
0

AJAX IMAGE Swapper support thread

jaycode:

No prob, will do,

dang its really, really hard to combine this with IH2. I think the best I can do for now is fish for IH2's high quality image resizing technique...

I hope I can help out here. If a few brave souls want to help test this hopefully we'll all benefit until Jay has some free time to work on the Image Handler integration.

I am having much better luck with the file I've attached. If anyone wants to try it out for themselves simply replace the ais_image_functions.php file found in admin->inclueds->functions->extra_functions . Then go into the image swapper manager and give it a shot on a test product.

PS, the first time I tried this I simply renamed the file that was on the server and then uploaded the one I'd edited and got this message when I went into the image swapper manager:

Fatal error: Cannot redeclare upload_resized_image() (previously declared in /admin/includes/functions/extra_functions/ais_image_functions_jay.php:14)

I simply backed up the file that was there then deleted it the replaced it with the new one and was fine.

If it doesn't work for you please create a php file with the following code and upload it to your server, then go to that page and copy and paste the results.

<?php
var_dump(gd_info());
?>

For reference the version on my server is:
GD Version"]=> string(27) "bundled (2.0.34 compatible)

From what I understand about gd2, bundled is the key word for using some of their functions.

Good luck!

23 Nov 2008, 2:10 AM
#382
chuckienorton avatar

chuckienorton

New Zenner

Join Date:
Dec 2007
Posts:
54
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Jaycode,

I've got SimpleSEO 2.9.6 installed, & Ajax Image Swapper 1.2, and can't get images to work. Do I need to upgrade? Or is there a simple fix?

Thanks,
Chuck

23 Nov 2008, 7:59 AM
#383
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

Thanks grey! I also found some problem with the design. With what it currently is, really hard to redesign if you need to change how AIS look.

It is still an idea but hopefully in the next version AIS can be edited just by editing css or at max html files.

Jay

greydawgjr:

I hope I can help out here. If a few brave souls want to help test this hopefully we'll all benefit until Jay has some free time to work on the Image Handler integration.

I am having much better luck with the file I've attached. If anyone wants to try it out for themselves simply replace the ais_image_functions.php file found in admin->inclueds->functions->extra_functions . Then go into the image swapper manager and give it a shot on a test product.

PS, the first time I tried this I simply renamed the file that was on the server and then uploaded the one I'd edited and got this message when I went into the image swapper manager:

I simply backed up the file that was there then deleted it the replaced it with the new one and was fine.

If it doesn't work for you please create a php file with the following code and upload it to your server, then go to that page and copy and paste the results.

<?php var_dump(gd_info()); ?>
> GD Version"]=>  string(27) "bundled (2.0.34 compatible)
> 
> From what I understand about gd2, bundled is the key word for using some of their functions.
> 
> Good luck!
23 Nov 2008, 8:01 AM
#384
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

As far as I'm concerned this should still work with SEO URL modules... but maybe, the problem was when it sends ajax request to http://yoursite.com/AJAX_servers/AIS_server.php it was redirected to other page by SEO module

chuckienorton:

Jaycode,

I've got SimpleSEO 2.9.6 installed, & Ajax Image Swapper 1.2, and can't get images to work. Do I need to upgrade? Or is there a simple fix?

Thanks,
Chuck

24 Nov 2008, 4:28 PM
#385
chuckienorton avatar

chuckienorton

New Zenner

Join Date:
Dec 2007
Posts:
54
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

jaycode:

As far as I'm concerned this should still work with SEO URL modules... but maybe, the problem was when it sends ajax request to http://yoursite.com/AJAX_servers/AIS_server.php it was redirected to other page by SEO module

Thanks. I'll look into it now.

C

25 Nov 2008, 5:50 PM
#386
greydawgjr avatar

greydawgjr

New Zenner

Join Date:
May 2008
Posts:
65
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hi All,

I've tested the file I posted above on two more gd2 library versions and am getting good results so I would say to go ahead and give it a shot. I'm even going to downgrade my "brave souls" comment to "mildly adventurous" :smile: . Just remember to backup the original somewhere other than the webserver in case you want to revert.

I also realized that I didn't explicitly say what that file does but it redoes the way AIS resizes/resamples the images. In other words it fixes the image quality problems that a lot of people are having issues with. I've tested it with .jpg and .png files with near perfect results and am getting excellent compression to quality compromise. (The images this file produces are the same size as the original version, but with much better quality)

25 Nov 2008, 6:25 PM
#387
greydawgjr avatar

greydawgjr

New Zenner

Join Date:
May 2008
Posts:
65
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Sorry for the double post, but download this file instead of the one I posted above. The file contained in this post also includes the bug fix to the portrait aspect ratios I made last summer. Either one will work if your images are landscaped.

30 Nov 2008, 10:45 PM
#388
jmeca avatar

jmeca

New Zenner

Join Date:
Nov 2006
Location:
Sapin
Posts:
44
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hello: I have instalated in mys web image swapper and i think is great and give to may shops look more profesional, i only have a problem and is that, take a long time to open de photos and make the zoom normaly i use firefox and take long time but in IE take more time in open and make the zoom.

Any have ideas or can help me. My web is: www.expomueble.es:yes:

Thank you very much in advance for your help.:hug:

30 Nov 2008, 11:39 PM
#389
greydawgjr avatar

greydawgjr

New Zenner

Join Date:
May 2008
Posts:
65
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hi jmeca,

Looks like you have quite a few things loading on that page. The things that seem to be really slowing it down are your google ads and impressinsweb ads along with analytics. In fact, the files associated with AIS are loading relatively quickly.

You can speed it up by getting rid of whatever is calling sounds.js which is not present, but that probably won't be a big difference.

jmeca:

Hello: I have instalated in mys web image swapper and i think is great and give to may shops look more profesional, i only have a problem and is that, take a long time to open de photos and make the zoom normaly i use firefox and take long time but in IE take more time in open and make the zoom.

Any have ideas or can help me. My web is: www.expomueble.es:yes:

Thank you very much in advance for your help.:hug:

13 Dec 2008, 4:09 AM
#390
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

greydawgjr:

Sorry for the double post, but download this file instead of the one I posted above. The file contained in this post also includes the bug fix to the portrait aspect ratios I made last summer. Either one will work if your images are landscaped.

I do not know if anyone has told you about the ais file you have here but thanks it works great for me with no problem images look a lot better now. Thanks again:clap:

17 Dec 2008, 4:33 PM
#391
city1227 avatar

city1227

New Zenner

Join Date:
Sep 2008
Posts:
7
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

I am facing problem please help me out,

I have installed it on my admin , when i click on the category dropdown box i can not see any product on the second box, please help me out for this

18 Dec 2008, 2:37 AM
#392
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Can someone please give me some insight on what is happending here.

My product listing images are coming up small H:75 W:56, i have it set for w:160 H:300. Now why is it coming the small size which would be the size for the additional images on the product info page. But when i change the size it also changes the size for the small additional images on the product info page which intern is to big.

How do i go about changing things so that the images on the product listing page is set to the right height and width without affecting the other images, meaning the small images on the product info page?

They seem to work together.:cry:

18 Dec 2008, 5:15 AM
#393
john4 avatar

john4

New Zenner

Join Date:
Jun 2008
Posts:
18
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

greydawgjr:

Sorry for the double post, but download this file instead of the one I posted above. The file contained in this post also includes the bug fix to the portrait aspect ratios I made last summer. Either one will work if your images are landscaped.

It comes a fatel error when I replace the file.
Any hits to solve this problem,thx!:D

Fatal error: Cannot redeclare upload_resized_image() in /usr/ide/webs/e08050901/ROOT/admin/includes/functions/extra_functions/ais_image_functions.phpx on line 14

18 Dec 2008, 5:30 AM
#394
john4 avatar

john4

New Zenner

Join Date:
Jun 2008
Posts:
18
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

john4:

It comes a fatel error when I replace the file.
Any hits to solve this problem,thx!:D

Fatal error: Cannot redeclare upload_resized_image() in /usr/ide/webs/e08050901/ROOT/admin/includes/functions/extra_functions/ais_image_functions.phpx on line 14

pls ignore this message.
But even I replace the file, the image quality is wtill too low to used.

18 Dec 2008, 7:41 AM
#395
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

dscott1966:

Can someone please give me some insight on what is happending here.

My product listing images are coming up small H:75 W:56, i have it set for w:160 H:300. Now why is it coming the small size which would be the size for the additional images on the product info page. But when i change the size it also changes the size for the small additional images on the product info page which intern is to big.

How do i go about changing things so that the images on the product listing page is set to the right height and width without affecting the other images, meaning the small images on the product info page?

They seem to work together.:cry:

any link? If I remembered correctly (hey its been awhile since I worked on this!) they share the same variables so what you might want to do is to replace SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT throughout the module and change them with your own variable say AIS_SMALL_IMAGE_WIDTH and AIS_SMALL_IMAGE_HEIGHT.

dont forget to set the variables by adding a file under includes/extra_configures/ with anyname and add these code:

define('ASC_SMALL_IMAGE_WIDTH', 75);
define('ASC_SMALL_IMAGE_HEIGHT', 56);

18 Dec 2008, 4:30 PM
#396
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

jaycode:

any link? If I remembered correctly (hey its been awhile since I worked on this!) they share the same variables so what you might want to do is to replace SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT throughout the module and change them with your own variable say AIS_SMALL_IMAGE_WIDTH and AIS_SMALL_IMAGE_HEIGHT.

dont forget to set the variables by adding a file under includes/extra_configures/ with anyname and add these code:

define('ASC_SMALL_IMAGE_WIDTH', 75);
define('ASC_SMALL_IMAGE_HEIGHT', 56);

Not understanding what you mean by changing the sizes throughout the module. Do i go through the image swapper mod, looking through every file? I really don't know what i will be looking for. I'm new to this, i can understand how to follow directions when i know what i'm looking for. Can i get a little more help (LOL).

Sorry for not knowing what you mean. Anyway here is a look see at the product listing page,

http://dealz-r-us.com/index.php?main_page=index&cPath=2_24

and here is a look see at the product info page,

http://dealz-r-us.com/index.php?main_page=product_info&cPath=2_24&products_id=55

Once again the small images are the same size and if i change the small images on the product listing page, it also changes the ones on the product info page. Is there a simpler way of changing this. or is there a specific file that controls this. because i'm at a loss at what your telling me to do at the top. :cry:

19 Dec 2008, 3:55 AM
#397
greydawgjr avatar

greydawgjr

New Zenner

Join Date:
May 2008
Posts:
65
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

john4:

pls ignore this message.
But even I replace the file, the image quality is wtill too low to used.

Hi John,

Since you've tested this can you provide a little more feedback so that we can continue to tweak the quality issues? Also if you can provide the GD version your server is using that would be a big help. Also, are the images you're resizing the same aspect ratio as the image dimensions you're resizing to?

Thanks

19 Dec 2008, 4:19 AM
#398
greydawgjr avatar

greydawgjr

New Zenner

Join Date:
May 2008
Posts:
65
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Here's a sneak peak of the modified AIS file I posted on the previous page so that you can decide whether or not it's a worthwhile upgrade before going through the work of replacing the file.

(The original I've included has a larger file size than the forum allows for upload (it's about 104k) so the image you see here will have been resized by the upload so it won't be a quite fair comparison. I believe the resized ones will be left alone though so hopefully it'll provide some idea)

Good luck!

edit
The images in the attached thumbnails box are the original followed by the medium resized image. The image in the Attached Images box is the thumbnail in its full size. Admittedly this particular image doesn't scale down that far very well but a picture of a shoe or t-shirt would look much better.

19 Dec 2008, 4:44 AM
#399
greydawgjr avatar

greydawgjr

New Zenner

Join Date:
May 2008
Posts:
65
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

city1227:

I am facing problem please help me out,

I have installed it on my admin , when i click on the category dropdown box i can not see any product on the second box, please help me out for this

Hi City,

I'd double check all the files to make sure that they're in their proper locations. If a function like that isn't working it's almost guaranteed to be a missing file or a file in the wrong location. The first file I'd double check is Ajax_image_swapper.php which should be located directly in the admin folder, followed by the files under mootools_on_admin and move outward from there...

19 Dec 2008, 5:44 AM
#400
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

dscott1966:

Not understanding what you mean by changing the sizes throughout the module. Do i go through the image swapper mod, looking through every file? I really don't know what i will be looking for. I'm new to this, i can understand how to follow directions when i know what i'm looking for. Can i get a little more help (LOL).

Sorry for not knowing what you mean. Anyway here is a look see at the product listing page,

http://dealz-r-us.com/index.php?main_page=index&cPath=2_24

and here is a look see at the product info page,

http://dealz-r-us.com/index.php?main_page=product_info&cPath=2_24&products_id=55

Once again the small images are the same size and if i change the small images on the product listing page, it also changes the ones on the product info page. Is there a simpler way of changing this. or is there a specific file that controls this. because i'm at a loss at what your telling me to do at the top. :cry:
Can someone give me help on this please!!!