Image Scaling

Views: 13,662

Results 41 to 60 of 135
27 Jan 2012, 10:55 PM
#41
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Image Scaling

discoverytdi:

no prob just didn't want to try it and have a thunderbolt wizz out of my pc:lamo:Truthfully if you renamed the "control" folder to "admin"... it would have been fine..

You do know that this is a BETA add-on.. I do hope you are not using this on a production store..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

28 Jan 2012, 10:18 AM
#42
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Image Scaling

And I don't know how to code a thunderbolt whizzing out of the users pc. Yet :smile:

But, yes, this is very much beta. Yes I do have a habit of leaving admin called 'control' because that is what it is called on my clean install of Zen that I use for testing.

If you do install this then please do post back with any comments, thoughts, etc. Even if it is ' it didn't work'. But if it doesn't work it would be nice if you give a little bit more information.

Thanks, discoverytdi, for giving it a go. Every bit of testing and help is very much appreciated. I want to be using this on live sites soon myself so I will push as hard as I can to get it there.

One thing I guess I should mention is that it probably won't play nice if Image handler is installed in any form. Basically there will be a conflict on the handle_image() function that Zen uses to allow modules to hook into the zen_image function. So, any image module has to declare the handle_image function. If you have two modules on the go then that function will be declared twice and throw up an error.

Thanks everyone.

Nick
iszent.com

28 Jan 2012, 10:30 AM
#43
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: Image Scaling

niccol:

And I don't know how to code a thunderbolt whizzing out of the users pc. Yet :smile:

But, yes, this is very much beta. Yes I do have a habit of leaving admin called 'control' because that is what it is called on my clean install of Zen that I use for testing.

If you do install this then please do post back with any comments, thoughts, etc. Even if it is ' it didn't work'. But if it doesn't work it would be nice if you give a little bit more information.

Thanks, discoverytdi, for giving it a go. Every bit of testing and help is very much appreciated. I want to be using this on live sites soon myself so I will push as hard as I can to get it there.

One thing I guess I should mention is that it probably won't play nice if Image handler is installed in any form. Basically there will be a conflict on the handle_image() function that Zen uses to allow modules to hook into the zen_image function. So, any image module has to declare the handle_image function. If you have two modules on the go then that function will be declared twice and throw up an error.

Thanks everyone.
Okies and I'll admit I had my blonde head on :ohmy: I'm interested cause IH3 seems to be getting overly complicated, :oops: will have play later and see if I find anything and report back. just wish I had the brains for things like this

What ever your doing remember to KISS ( Keep It Simple Stupid )

28 Jan 2012, 4:05 PM
#44
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Scaling

discoverytdi:

Okies and I'll admit I had my blonde head on :ohmy: I'm interested cause IH3 seems to be getting overly complicated, :oops: will have play later and see if I find anything and report back. just wish I had the brains for things like thisIf by "over complicated" you mean not working with v1.5, then I guess it is "overly complicated" sigh.. Not unresolvable, just not compatible, YET.. (patience..)

But yes if you read through this whole thread, you'd see that what niccol is doing here is BETA software, and you should not be using this a ANY live store yet..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

28 Jan 2012, 5:34 PM
#45
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Image Scaling

As Diva herself would say:

Nod in agreement. :yes:

It is BETA. And should NOT be used on a live store.

This whole little adventured did start after a conversation between Diva and I where I did express my opinion that just perhaps Image handler was just a bit more complicated than it need be. So, I set out to explore if that belief was true.

Personally, I think that the core functionality is creating scaled version of images and serving them to the browser when required. The first version of this BETA software does that with a single file. It is not beautifully coded, it has its limitations but that did prove to me that perhaps there was merit in proceeding rather than throwing efforts behind IH4 .

There is no doubt in my mind that IH has been a 'go to' module for many years. It is a fantastically effective module and I admire it greatly. I really do hope that a version that is compatible with 1.5 appears. I just got interested in whether there were other ways of doing the same thing. Choice is always good and healthy.

Nick
iszent.com

28 Jan 2012, 6:09 PM
#46
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Scaling

niccol:

As Diva herself would say:

Nod in agreement. :yes:

It is BETA. And should NOT be used on a live store.

This whole little adventured did start after a conversation between Diva and I where I did express my opinion that just perhaps Image handler was just a bit more complicated than it need be. So, I set out to explore if that belief was true.

Personally, I think that the core functionality is creating scaled version of images and serving them to the browser when required. The first version of this BETA software does that with a single file. It is not beautifully coded, it has its limitations but that did prove to me that perhaps there was merit in proceeding rather than throwing efforts behind IH4 .

There is no doubt in my mind that IH has been a 'go to' module for many years. It is a fantastically effective module and I admire it greatly. I really do hope that a version that is compatible with 1.5 appears. **I just got interested in whether there were other ways of doing the same thing. Choice is always good and healthy.**EXACTLY!!! Nods in agreement..:yes:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

28 Jan 2012, 8:34 PM
#47
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Image Scaling

is this 1.39 or 1.5

thanks
Bryan

28 Jan 2012, 9:52 PM
#48
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Image Scaling

hi,

uploaded onto 1.5 and install went fine, once uploaded i got message on admin saying database changes were made,

everything seem to work great once enable in config and tried most things, not sure if there was a readme file but everything seemed easy to operate, the only thing i done which i wasnt sure what would happen was in catalog / image management i used the display this product option, below i seen add new image section, at first i wasnt sure did this upload new image and replace the original image or was it an additional image, very small thing i know but as everything else went so smooth i thought id mention,

i deleted images, changed sizes of images in admin changed scaled verisons and deleted scaled versions and everything seemed to work without any problems

as it stands this seems to handle images great and with no image handler for 1.5 is great to see.

scaled images look good

thanks
bryan

28 Jan 2012, 10:02 PM
#49
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Image Scaling

@bn

Thank you for the feedback.

Yes, I thought 'Upload a New Image' was confusing on reflection. Would it be enough just to change that text to 'Upload a New Additional Image' ?

Also, perhaps it is worth having a 'replace this image' option on the main image? Hadn't thought of that because I just anticipated that people would do that through the normal edit product path. But maybe it is a good idea to have that in Image Management too. Then at least all the image management is in one place.

Yes, it does need a much better set of instructions :D Not enough hours in the day!

Nick
iszent.com

28 Jan 2012, 10:19 PM
#50
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Image Scaling

@bn

Bryan, just a quick reminder that this is still a BETA version and should not be used on live sites.

As I have said before I am pushing as hard as I can to get this functional for production sites as soon as I can. But I am pretty sure that there should be no issues with the security side of 1.5. All the parameters are POST ( even the product filter although I know that this is not strictly necessary ) , all the data in and data out are sanitised ( actually I need to check that ) and I think that the installer will play nice with Zen and the uninstall is as complete as it can be.

On the list of things to do :
-tidy up the code and put some of the functionality into classes now that I know what it actually needs to do.
-implement a directory categorisation similar to that suggested by Nigel

  • have a think about imagemagick

Thanks again for taking the time and giving the feedback.

Nick
iszent.com

28 Jan 2012, 10:31 PM
#51
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Image Scaling

hi,
yes 'Upload a New Additional Image' would clear it up and changing main image would be good since you can do everything else,

when i referenced the readme file i didnt mean that there was a problem with readme file i more meant i was able to work everything without reading it and the only thing i wasnt 100% about was the additional image, but after uploading 1 image it was clear what it done,

tomorrow i will upload my 4000 odd products and images to test site and then add your add on, should it handle product images ok for products allready on site or only products created after install, comparing two images of same size one with image handler and the 2nd with yours is that your file is so much smaller in size without much difference to image

imagehandler 62.66kb

http://www.onyourbike.co.uk/bmz_cache/9/94683a7ff41f2a652c46ed2bd6ccc0de.image.300x300.jpg

16.48kb - imagescaler

http://catchagrip.co.uk/imagescale/images/scaled/cb2007586.w300_h300.jpg

i also think install is very simple

thanks
Bryan

28 Jan 2012, 10:45 PM
#52
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Image Scaling

Thanks very much for this. I don't have that many products on my test site so will be interested to hear how you get on. I can't see any problems. Except of course that the 'scaled' directory will get large. But I don't think that should be an issue but will be interested to hear.

Nigel's suggestion about categorising the scaled image folder was partly to break this large folder up into sections. Which is probably a good idea and I will get there in the next version. It will be interesting to see how it deals with 4000 images.

It should handle all images, whether or not they were there before install.

Ah! Good point about the image sizes. I have applied some compression to the jpg images. This is set at a default of 0.85 ( I had meant to make this configurable but forgot! ) That would account for some of the image size difference maybe but I am not sure it accounts for the large difference you are seeing. To be honest I am not sure how IH deals with this so if any one else does then let me know.

Nick
iszent.com

28 Jan 2012, 11:01 PM
#53
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Scaling

Compression in IH3 is admin configurable.. so any differences seen can't be taken on it's face without knowing what image compression settings in IH3 were used..

niccol:

Thanks very much for this. I don't have that many products on my test site so will be interested to hear how you get on. I can't see any problems. Except of course that the 'scaled' directory will get large. But I don't think that should be an issue but will be interested to hear.

Nigel's suggestion about categorising the scaled image folder was partly to break this large folder up into sections. Which is probably a good idea and I will get there in the next version. It will be interesting to see how it deals with 4000 images.

It should handle all images, whether or not they were there before install.

Ah! Good point about the image sizes. I have applied some compression to the jpg images. This is set at a default of 0.85 ( I had meant to make this configurable but forgot! ) That would account for some of the image size difference maybe but I am not sure it accounts for the large difference you are seeing. To be honest I am not sure how IH deals with this so if any one else does then let me know.

<rant> And before ONE MORE person brings it up.. When all is said and done, there will be TWO options for image management for Zen Cart v1.5. (like niccol herself has said OPTIONS are good) Just like niccol is working on making this image management add-on production ready in her spare time, the same is true of Image Handler.. So before ONE MORE PERSON implies that Image Handler for v1.5 is dead hear ye ye, hear ye: **Image Handler is being re-developed for v1.5 too.**. It won't happen overnight.. Goodness.. </rant>

Sorry niccol.. my apologies for the off topic rant.. I will be testing too this afternoon and promise to report my findings.. :D

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

28 Jan 2012, 11:14 PM
#55
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Scaling

bn17311:

never thought of that, set imagehandler to 85 and now only a small difference in size

http://www.onyourbike.co.uk/bmz_cache/d/d7c27dd1bb1b32b6b8d2818f02a0630d.image.300x300.jpg

19.01kbNot for nothing, but it's in the readme.. :laugh:

Speaking of readme files, niccol, when this becomes ready for release into the wild, I'd be happy to help you pull together the readme file.. :smile: Evenif it's EASY PEEZY to understand, yo can't assume everyone will "get it" without a little help.. Learned this over the course of my career in IT.. NEVER assume others understand it like you do..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

29 Jan 2012, 8:55 AM
#56
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Image Scaling

hi,

test site with 4000+ products, i have pmd you

http://catchagrip.co.uk/imagescale/

seems to work great

there may be the odd image missing but this is nothing to do with imagescaler just working from an old backup of images

bryan

29 Jan 2012, 10:12 AM
#57
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Image Scaling

Bryan,

Glad that it seemed to work:smile:

I will have a bit of a play with your test site later on. I might send you a different version to have a play with. I am just thinking of timing some of the actions on a store with that many images which wouldn't be part of the real module but might be an interesting study for me if you can spare the time.

Oh, and thanks again. The testing of it all is a major contribution.

Nick

Nick
iszent.com

29 Jan 2012, 10:30 AM
#58
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: Image Scaling

niccol:

As Diva herself would say:

Nod in agreement. :yes:

It is BETA. And should NOT be used on a live store.

This whole little adventured did start after a conversation between Diva and I where I did express my opinion that just perhaps Image handler was just a bit more complicated than it need be. So, I set out to explore if that belief was true.

Personally, I think that the core functionality is creating scaled version of images and serving them to the browser when required. The first version of this BETA software does that with a single file. It is not beautifully coded, it has its limitations but that did prove to me that perhaps there was merit in proceeding rather than throwing efforts behind IH4 .

There is no doubt in my mind that IH has been a 'go to' module for many years. It is a fantastically effective module and I admire it greatly. I really do hope that a version that is compatible with 1.5 appears. I just got interested in whether there were other ways of doing the same thing. Choice is always good and healthy.

My thoughts exactly I used IH3 on my old site and worked fine. I started following this after I read the conversation between you both on that thread and thought it might be worth a look, might be miss reading this but though it would be an alternative to IH3 for those who don't need all the functionality of IH3.

What ever your doing remember to KISS ( Keep It Simple Stupid )

29 Jan 2012, 10:33 AM
#59
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: Image Scaling

DivaVocals:

Not for nothing, but it's in the readme.. :laugh:

Speaking of readme files, niccol, when this becomes ready for release into the wild, I'd be happy to help you pull together the readme file.. :smile: Evenif it's EASY PEEZY to understand, yo can't assume everyone will "get it" without a little help.. Learned this over the course of my career in IT.. NEVER assume others understand it like you do..

ah that little word assume split it and what do you get ###### of U and ME:D

What ever your doing remember to KISS ( Keep It Simple Stupid )

29 Jan 2012, 10:35 AM
#60
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Image Scaling

glad i can help, i dont know how to write code so its nice to be able to help in some way send anything you want through, ive sent my email address

also can the scaled images all be deleted, with 1 button. just wondering what happens when my suppliers send me through better images and i ftp them up, do the scaled images get redone knowing the image has changed

bryan