If this is your first visit, check our documentation. To post, register or login.

Image Manager addon

Started by boudewijn on 15 Oct 2009, 8:13 AM · Views: 93,213

Results 141 to 160 of 284
24 Jan 2011, 2:44 PM
#141
buildingblocks avatar

buildingblocks

Totally Zenned

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

Post #141 by buildingblocks

paulcreedy:

So to follow a client senario - is this how it works?

A client uploads an image via their add product
They go into IM and find the image
Then create the three images from the original.

Is that correct?

What directory should they upload the original to? The main one or the large one?
Once the images have been created the original is now not required, can it be deleted?

This is what I found

If I create a subfolder

images/books

and upload my products main image to images/books, Image manager creates a subfolder for medium and large images this way

images/medium/books
images/large/books

If I upload the image to Main Directory (which is the /images/ folder) , then Image manager creates the medium and large images in

images/medium
images/large

So your client would upload the main image to the images folder or if they are going to upload them by category type then create a subfolder in the images folder

Ex.
images/books
images/glassware
images/tools

Image manager will automatically create the corresponding folders in the medium and large folders.

Once the medium and large images are created, the small image offers a link to shrink the original image and that becomes the small image so you won't need to delete the original because the original is now resized to small.

24 Jan 2011, 3:09 PM
#142
paulcreedy avatar

paulcreedy

New Zenner

Join Date:
Sep 2010
Posts:
43
Plugin Contributions:
0

Post #142 by paulcreedy

Ah! Got it - I think!

From a client point of view it's a shame they just cant upload a single photo and then have them automatically create the three images without all the fuss.

25 Jan 2011, 11:25 AM
#143
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #143 by boudewijn

paulcreedy:

Ah! Got it - I think!

From a client point of view it's a shame they just cant upload a single photo and then have them automatically create the three images without all the fuss.

Hi Paul,

From a developers point of view it's a shame that out of 2000 downloaders none has ever donated a cent for the free use of this tool :wink:

But anyway, IM 1.5 will have two extra functions:

  • one for new images, uploaded throught the add product page: one-click creation of medium and large images, applying the watermark(s) and resizing the original small one;

  • one for replacement images, uploaded from IM or the edit product page: after upload, one-click deletion of the existing medium and large image, then same as above.

This will at least save 2 or 4 extra clicks.

@buildingblocks: thanks for clarifying the client scenario!

Boudewijn

Boudewijn Sjouke
http://www.chinesedingen.nl

25 Jan 2011, 11:28 AM
#144
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #144 by boudewijn

buildingblocks:

original image
Size: 44 Kb
Dimensions: 485 x 640

In configuration > Image Manager I set the max large image width and height to 600

no watermark file present

Image manager generates the large image at
Size: 236 Kb
Dimensions: 455 x 600

:shocking: LOL

Does anyone else notice this happening in their installation?

The images are resized, and the watermark is applied by using the standard functions in the PHP-GD library. As far as I know I cannot influence the way these functions handle this, or at least I have no idea yet how to do this.

Boudewijn Sjouke
http://www.chinesedingen.nl

25 Jan 2011, 1:03 PM
#145
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #145 by boudewijn

Found it.

The size of the copied/resized image depends largely on the parameter that defines the quality of the destination file. More quality, larger files.

IM 1.5 will have a configuration option to enable the admin to determine the quality, and therewith the size of the created files.
Note that this option only works for jpg and png files, NOT for gif files.

Boudewijn Sjouke
http://www.chinesedingen.nl

25 Jan 2011, 3:01 PM
#146
buildingblocks avatar

buildingblocks

Totally Zenned

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

Post #146 by buildingblocks

""new options:

  • one for new images, uploaded throught the add product page:
  • a configuration option to enable the admin to determine the quality, and therewith the size of the created files.""

perfect!!!!
I find so many folks who are nervous about getting involved with ftp or just don't want to learn it. Having an extra area to add the additional images on the product page is a huge plus and a control to determine the quality.......I'm looking forward to the next release!!

It didn't take you long to find where the quality control is.

I was playing with the firefox macro mentioned in a previous post. That works great for dealing with existing images. I never knew about that.

25 Jan 2011, 3:03 PM
#147
paulcreedy avatar

paulcreedy

New Zenner

Join Date:
Sep 2010
Posts:
43
Plugin Contributions:
0

Post #147 by paulcreedy

boudewijn:

Found it.

The size of the copied/resized image depends largely on the parameter that defines the quality of the destination file. More quality, larger files..

The 'smaller' file being larger is something that's quite common after resizing even when reducing the image quality. However whilst the image size may be larger the dimensions are smaller so it at least fits better on the page.

Is 1.5 ready? Where do I get it from to try it out?

25 Jan 2011, 3:47 PM
#148
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #148 by boudewijn

Well, the code is ready, but I want to do some more testing, especially to see if the new functions also handle errors well.
If you want to help me on this and try the new 1.5, please send me a private message with your email adress, and I will send you the new package.
It also contains installation instructions.
If anything goes wrong, it's very easy to roll back to 1.4 (just copy 1.4 package to the server and it will overwrite 1.5).

The quality setting was easy to find in the PHP documentation once I realised that it has a relation with file sizes. Previously I hardcoded the quality to 100, but experience from others is that a lower value of 75 is the best trade off between filesize and visible quality.

I remember the discussion about macro's. The problem with online systems, is that they are transaction oriented and not batch oriented. Due to execution time restrictions on servers it's not handy to process large numbers of images in one transaction. If the time limit is exceeded, you're left with half done or broken work. Macro's can help here, but for multiple actions on one single image it's better to build another (combined) action in the code itself.

Btw it's fairly easy to set the defaults for IM in such a way, that the user always starts with a page with files that need attention.

Boudewijn Sjouke
http://www.chinesedingen.nl

31 Jan 2011, 7:02 AM
#149
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #149 by boudewijn

The new version of Image Manager, 1.5, is available from the download section.

New features:

  • Added configuration option to set the copied/resized image quality
  • Added one-click 'fix new image'
  • Added one-click 'fix replacement image'
  • Added option to completely remove an additional image
  • Added check for correct configuration settings
  • Added Show popup image loads image on mouseover
  • Added RW folder/file check to unattached files list

Fixes:

  • Fixed full file path shows in URL
  • Fixed language selector disappears
  • Fixed wrong page count if # of images is multiple of # of pages
  • Fixed width of upload additional image bar
  • Fixed setting vertical bottom margin has no effect
  • Fixed jump back to page 1 after file delete
  • Fixed cannot re-upload image if small is missing

Thanks to all that gave feedback and to buildingblocks for extended testing of the new version!

Boudewijn Sjouke
http://www.chinesedingen.nl

31 Jan 2011, 10:24 AM
#150
dutchy avatar

dutchy

Zen Follower

Join Date:
May 2010
Location:
London
Posts:
324
Plugin Contributions:
0

Post #150 by dutchy

I use 1.4, amazing add-on!
looking forward to installing and testing 1.5!

Excellent work and thank you for sharing with us.

What are your paypal details to allow us to donate?
:clap:

31 Jan 2011, 1:37 PM
#151
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #151 by boudewijn

dutchy:

I use 1.4, amazing add-on!
looking forward to installing and testing 1.5!

Excellent work and thank you for sharing with us.

What are your paypal details to allow us to donate?
:clap:

Thanks for your compliments! I'm looking forward to your (and others) feedback and wishes for future releases.

My PayPal details (email address) are in the image_manager.txt file, included in the package, right at the top.

Best regards,
Boudewijn

Boudewijn Sjouke
http://www.chinesedingen.nl

2 Feb 2011, 1:04 AM
#152
buildingblocks avatar

buildingblocks

Totally Zenned

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

Post #152 by buildingblocks

I got changed over to the new IM and all went well. I also made use of the FF macro which really help with generating the med/lrg images and resizing the small image for all my existing images.

Your taking a wish list? Ok, I'll add mine

It would be really great to have extra "slots" on the product listing page for uploading the additional images when creating a listing, but that would probably mean editing core files.
and a "hover to enlarge" feature for images (centerboxes and sidebox images).

Thanks for the great mod!

2 Feb 2011, 9:35 AM
#153
dutchy avatar

dutchy

Zen Follower

Join Date:
May 2010
Location:
London
Posts:
324
Plugin Contributions:
0

Post #153 by dutchy

I love how it saves images to .bak so you still have your original image. But Some PCI scans fail store's which have .txt and .bak files on the server. Is there a possible way to have the next version of IM save the .bak files into a dedicated folder on the server? For example, we can create a folder via FTP and in the IM admin we could specify what folder (eg /images/bakimages) to have our .bak files saved to. This would allow us to save/remove the .bak file in one go via FTP... Just a thought?

buildingblocks:

a "hover to enlarge" feature for images (centerboxes and sidebox images).

Like the effect built into IH2? Oh god no! please NO! I loath that IH2 image effect, It's crap and annoying. There are other Ajax mods on and off site that do it better!

buildingblocks:

Thanks for the great mod!
have donated, but paypal have sent via 'e-cheque'? which wont reach you for 5 working days. Sorry, don't know why it did that.

2 Feb 2011, 9:59 AM
#154
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #154 by boudewijn

buildingblocks:

I got changed over to the new IM and all went well. I also made use of the FF macro which really help with generating the med/lrg images and resizing the small image for all my existing images.

Your taking a wish list? Ok, I'll add mine

It would be really great to have extra "slots" on the product listing page for uploading the additional images when creating a listing, but that would probably mean editing core files.
and a "hover to enlarge" feature for images (centerboxes and sidebox images).

Thanks for the great mod!

You are right, the upload link as well as the hover will require modification of core files, which actually is not my intention (so far). You may want to look for other addons providing better image display, for instance with lightbox.

I do see a third wish here: multiple file fix, which is what you do with the macros now. This definitely is a candidate for the 1.6 release.

Boudewijn Sjouke
http://www.chinesedingen.nl

2 Feb 2011, 10:38 AM
#155
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #155 by boudewijn

dutchy:

I love how it saves images to .bak so you still have your original image. But Some PCI scans fail store's which have .txt and .bak files on the server. Is there a possible way to have the next version of IM save the .bak files into a dedicated folder on the server? For example, we can create a folder via FTP and in the IM admin we could specify what folder (eg /images/bakimages) to have our .bak files saved to. This would allow us to save/remove the .bak file in one go via FTP... Just a thought?.
This shouldn't be a big problem to change. The only thing that can happen is that images have the same name but reside in different folders. If their bak files are moved to one container, it will cause a conflict. The easiest way would be to take deletion of the already present bak file for granted.
dutchy:

Like the effect built into IH2? Oh god no! please NO! I loath that IH2 image effect, It's crap and annoying. There are other Ajax mods on and off site that do it better!
As you can read, I have no intention to provide this with IM.
dutchy:

have donated, but paypal have sent via 'e-cheque'? which wont reach you for 5 working days. Sorry, don't know why it did that.
Thanks!!!! And of course it's no problems to wait a few days ;-)

Boudewijn Sjouke
http://www.chinesedingen.nl

3 Feb 2011, 11:13 AM
#156
dutchy avatar

dutchy

Zen Follower

Join Date:
May 2010
Location:
London
Posts:
324
Plugin Contributions:
0

Post #156 by dutchy

Hi,

I just started to play and install IM1.5. Great updates btw but I seem to have run into a little problem.

On a test site with IM1.4 installed, when i run the SQL via ADMIN>TOOLS>SQL Query Executor the following is returned.


403 error
Forbidden

You don't have permission to access /test/admin1/sqlpatch.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


I get the above regardless of what SQL query run.

I tested this with a clean install of Zen Cart. Before I install Image Manager I can use the built in SQL Query Executor to run any SQL statement OK. But once I have installed Image Manager, the SQL Query Executor stops working and returns the above 403 error.

This is not a massive problem though, as I can still run SQL scripts from phpMyAdmin or by using the Zen Cart 'upload file' facility. It is just the method of copy and pasting the SQL which fails.

Please advise
Thanks

p.s. you should have your donation by Wednesday. I think this is because we are in different countries as this happened last time I donated to someone outside the UK.*

3 Feb 2011, 12:28 PM
#157
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #157 by boudewijn

Hi,

Were you able to run the Image Manager SQL-patch? Or did it happen before that and after installation of the files?

Boudewijn

Boudewijn Sjouke
http://www.chinesedingen.nl

3 Feb 2011, 2:02 PM
#158
dutchy avatar

dutchy

Zen Follower

Join Date:
May 2010
Location:
London
Posts:
324
Plugin Contributions:
0

Post #158 by dutchy

Hi, i was unable to run the SQL patch for upgrading 1.4 to 1.5 via copy and pasting. But i was able to run the 1.4 to 1.5 upgrade patch by using the 'upload file' feature.

Thinking it might be caused by a number of problems i started to test. I created a clean install of zen cart with no other add-ons installed. I ran a few SQL patches via copy and pasting and there were no problem. I then installed IM1.4 and ran the SQL for the install.sql via copy and paste and it worked with no problems. I then tried to run the 1.4 to 1.5 upgrade patch and the same 403 error when copy and pasting.

I then created another clean ZC test site, ran a few SQL patches via copy and paste with no problems. Installed IM.15 and ran install SQL via copy and paste with no problems. I then ran another (general) SQL patch via copy and paste and it failed.

From what I can gather, (for me) once IM is istalled, I am unable to run any SQL patches via copy and pasting.

It' over my head as to why? Cheers for looking into this.

3 Feb 2011, 8:46 PM
#159
boudewijn avatar

boudewijn

Zen Follower

Join Date:
Jun 2009
Posts:
207
Plugin Contributions:
0

Post #159 by boudewijn

Can you try to run the uninstall script, or remove the IM-configs with phpadmin? And then see what happens?

Boudewijn Sjouke
http://www.chinesedingen.nl

4 Feb 2011, 1:52 PM
#160
dutchy avatar

dutchy

Zen Follower

Join Date:
May 2010
Location:
London
Posts:
324
Plugin Contributions:
0

Post #160 by dutchy

Hi, nope.. tried again with 3 clean zencart sites.

Runing
DELETE FROM admin WHERE admin_name = 'Admin';# MySQL returned an empty result set (i.e. zero rows).
INSERT INTO admin (admin_name, admin_email, admin_pass, admin_level) VALUES ('Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);# 1 row(s) affected.
as a test.

This works Ok before I install Image Manager. But once i install Image Manager i cannot run any SQL statements. A 403 permission error is justs returned. With exception of the IM uninstall SQL. That works fine. However once I have ran the uninstall SQL I am unable to run any SQL fron ZC admin at all. Even via file upload.

Then the only way i can get SQL patches to work is via phpMyAdmin

???