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 221 to 240 of 284
16 Feb 2012, 6:02 AM
#221
boudewijn avatar

boudewijn

Zen Follower

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

Post #221 by boudewijn

rrgreene:

I get the following error when I try to auto fix or copy/resize:

PHP Fatal error: 1062:Duplicate entry 'ConfigImageManager' for key 'page_key' :: INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order) VALUES ('ConfigImageManager', 'BOX_TOOLS_IMAGE_MANAGER', 'FILENAME_CONFIGURATION', CONCAT('gID=', @configuration_group_id), 'configuration', 'Y', @sort_order);

Any ideas?

Zen Cart 1.5 and Image Manager 1.8
Nothing changed or upgraded since this last worked.

The error you see occurs when you rerun the installation script, while IM is already installed. What are you trying to do when this message appears?

Boudewijn Sjouke
http://www.chinesedingen.nl

17 Feb 2012, 2:34 AM
#222
rrgreene avatar

rrgreene

New Zenner

Join Date:
Feb 2012
Posts:
3
Plugin Contributions:
0

Post #222 by rrgreene

boudewijn:

The error you see occurs when you rerun the installation script, while IM is already installed. What are you trying to do when this message appears?

I am trying to either combine copy/resize or autofix. I did not attempt to reinstall the module - it was working fine.

22 Feb 2012, 6:25 PM
#223
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Post #223 by beyre

I'm gonna give this a whirl since neither Image Handers seem ready for JC 1.5

But I did notice one thing that I didn't see mentioned here.

My Admin does not already have ...
admin/includes/boxes/

:unsure:

So, I guess I'll just upload that folder directly.

22 Feb 2012, 6:33 PM
#224
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Post #224 by beyre

I have some questions.

I'll be uploading office chairs (and other office furniture).

Basically, there is going to be a lot of products and I wish to make it easier in the image file structure.

So ... Space Seating has sub-categories ... for example: Manager Chairs, Task Chairs, Reception Furniture, Drafting Chairs.

It is recommended to sub-categories the images folders to help with faster loading and such?

So, under the store's main images folder, so I do the sub-categorization there or do I have to do the sub-categorization under both the medium and large image folders?

Also
Do I still need to name the additional product images as (and I'll be using the product's model number for the images - just way easier):

13-7N1P3 (main image)
13-7N1P3_01
13-7N1P3_02

Thanks.

22 Feb 2012, 6:53 PM
#225
boudewijn avatar

boudewijn

Zen Follower

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

Post #225 by boudewijn

beyre:

I'm gonna give this a whirl since neither Image Handers seem ready for JC 1.5

But I did notice one thing that I didn't see mentioned here.

My Admin does not already have ...
admin/includes/boxes/

:unsure:

So, I guess I'll just upload that folder directly.

That is correct. The image_manager.txt installation instructions don't mention this, however, if you look under the upgrade instructions, you will see that for 1.5 you can exclude the file includes/boxes/extra_boxes/image_manager_tools_dhtml.php from installation.

Boudewijn Sjouke
http://www.chinesedingen.nl

22 Feb 2012, 7:02 PM
#226
boudewijn avatar

boudewijn

Zen Follower

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

Post #226 by boudewijn

beyre:

I have some questions.

I'll be uploading office chairs (and other office furniture).

Basically, there is going to be a lot of products and I wish to make it easier in the image file structure.

So ... Space Seating has sub-categories ... for example: Manager Chairs, Task Chairs, Reception Furniture, Drafting Chairs.

It is recommended to sub-categories the images folders to help with faster loading and such?

So, under the store's main images folder, so I do the sub-categorization there or do I have to do the sub-categorization under both the medium and large image folders?

Also
Do I still need to name the additional product images as (and I'll be using the product's model number for the images - just way easier):

13-7N1P3 (main image)
13-7N1P3_01
13-7N1P3_02

Thanks.

For IM, it makes no difference how you organize your pictures. For managing them, it will be easier to put them in a structure. For my webshop I group them by supplier, but you can choose any criterium that suits you.

While entering new products, just upload the large, original images from the product entry page. When done, go to IM, and let IM create the structure under /medium and /large, and copy/resize all images to the sizes for small/medium/large. IM will create the necessary folders.

You can use IM to upload additional images, or you can do it yourself by using for example an FTP program. It is necessary that you follow the ZenCart rules for naming additional images, in the wiki is an article about this. I think your example would be:

13-7N1P3 (main image)
13-7N1P3_1
13-7N1P3_2

I hope this helps you on your way!

Boudewijn Sjouke
http://www.chinesedingen.nl

22 Feb 2012, 7:23 PM
#227
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Post #227 by beyre

I am grateful for your quick reply.

Just one last clarification.

Since your IM does all the medium and large images itself ... do I just create my desired image categories within the root images folder ....

images/managerchairs/
images/taskchairs/
images/draftingchairs/

etc?

22 Feb 2012, 7:29 PM
#228
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Post #228 by beyre

Sorry - another question.

In the Image Manager settings, I do have it set to YES to show the additional image link ... but WHERE does it show this link?

When I go to add a new product or edit an existing one, there is no add an additional image link anywhere.

EDITED: Oh never mind! I didn't realize there was Image Manager under Tools also. DUH! And with that, I missed uploading the 2 .php files. bangs head on desk

Now, let's see if I can find the add additional images part ...

EDITED AGAIN ....

Ok, my medium and large images were missing, so I did the copy from small links for each. Now, for some reason, the original picture that had a white background, suddenly has a black background. I can't have that. Where do I go to tell Image Manager not to change the background color?

22 Feb 2012, 8:44 PM
#229
boudewijn avatar

boudewijn

Zen Follower

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

Post #229 by boudewijn

beyre:

I am grateful for your quick reply.

Just one last clarification.

Since your IM does all the medium and large images itself ... do I just create my desired image categories within the root images folder ....

images/managerchairs/
images/taskchairs/
images/draftingchairs/

etc?

Yes, that is correct.

Boudewijn Sjouke
http://www.chinesedingen.nl

22 Feb 2012, 8:46 PM
#230
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Post #230 by beyre

Still can't find any Add Additional Image link ... and I can no longer bring up the one product's image I have loaded ... within the Image Manager admin.

22 Feb 2012, 8:48 PM
#231
boudewijn avatar

boudewijn

Zen Follower

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

Post #231 by boudewijn

beyre:

Sorry - another question.

In the Image Manager settings, I do have it set to YES to show the additional image link ... but WHERE does it show this link?

When I go to add a new product or edit an existing one, there is no add an additional image link anywhere.

EDITED: Oh never mind! I didn't realize there was Image Manager under Tools also. DUH! And with that, I missed uploading the 2 .php files. bangs head on desk

Now, let's see if I can find the add additional images part ...

EDITED AGAIN ....

Ok, my medium and large images were missing, so I did the copy from small links for each. Now, for some reason, the original picture that had a white background, suddenly has a black background. I can't have that. Where do I go to tell Image Manager not to change the background color?

Hmmm that is a new issue, IM should not alter the images in any way. I have to look into this. Can you send me one or two of those (original) pictures? Please send them to info at chinesedingen dot nl.

The additional images links will appear if you use the filter on Products-ID.

Boudewijn Sjouke
http://www.chinesedingen.nl

22 Feb 2012, 8:51 PM
#232
boudewijn avatar

boudewijn

Zen Follower

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

Post #232 by boudewijn

beyre:

Still can't find any Add Additional Image link ... and I can no longer bring up the one product's image I have loaded ... within the Image Manager admin.

Dit you set it to: Show files without errors?

Boudewijn Sjouke
http://www.chinesedingen.nl

22 Feb 2012, 8:52 PM
#233
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Post #233 by beyre

I'll email you the original photo here in a minute.

Not sure what you mean by filter on Product-ID ... can you please tell me where to look?

Everywhere in the cart settings where it gives you the option to have additional product images ... I have set to on/yes

22 Feb 2012, 8:57 PM
#234
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Post #234 by beyre

I got to thinking. The images are .png ones and I opened them in Photoshop and lo and behold, they backgrounds are transparent.

So, I looked and saw my #productMainImage is taking the background color from the #body.

I added a background-color: #FFF to the #productMainImage, but that hasn't solved the problem.

Either I am doing it wrong, or I need to delete the product image and try again.

22 Feb 2012, 9:08 PM
#235
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Post #235 by beyre

boudewijn:

Dit you set it to: Show files without errors?

You meant under the Image Manager admin section.
Gotcha.
I see it now.

Perhaps add that tidbit in the instructions?

25 Feb 2012, 3:45 AM
#236
rrgreene avatar

rrgreene

New Zenner

Join Date:
Feb 2012
Posts:
3
Plugin Contributions:
0

Post #236 by rrgreene

rrgreene:

I am trying to either combine copy/resize or autofix. I did not attempt to reinstall the module - it was working fine.

I tried uninstall image manager and running the uninstall script. I then re-installed. The error still occurs. Any thoughts?

2 Mar 2012, 3:36 AM
#237
mutinyzoo avatar

mutinyzoo

New Zenner

Join Date:
Mar 2011
Location:
Pensacola, FL
Posts:
88
Plugin Contributions:
2

Post #237 by mutinyzoo

Thanks much for what looks like a terrific add-on, boudewijn.

I can't seem to figure out exactly what Autofix does. Does it apply combined copy/resize to all listed image files?

The script is working wonderfully with ZC 1.5, however when I try to do the combined copy/resize, it creates three greatly degraded images.

I had had IH3 running before I upgraded and it appears that I have removed all the IH3 files, however all of the IH3 line items are still appearing in the Configuration/Images listing. Could this be causing a problem?

2 Mar 2012, 10:21 PM
#238
mutinyzoo avatar

mutinyzoo

New Zenner

Join Date:
Mar 2011
Location:
Pensacola, FL
Posts:
88
Plugin Contributions:
2

Post #238 by mutinyzoo

Okay my mistake not removing Image Handler (IH3) BEFORE upgrading to ZC1.5.

Ended up having to remove files manually and alter database through phpmyAdmin (Cpanel), using two SQL statements from the remove_image_handler function:

DELETE FROM zen_configuration WHERE configuration_key = 'LARGE_IMAGE_MAX_WIDTH' OR
configuration_key = 'LARGE_IMAGE_MAX_HEIGHT' OR configuration_key = 'SMALL_IMAGE_FILETYPE' OR configuration_key = 'SMALL_IMAGE_BACKGROUND' OR configuration_key = 'WATERMARK_SMALL_IMAGES' OR configuration_key = 'ZOOM_SMALL_IMAGES' OR configuration_key = 'ZOOM_IMAGE_SIZE' OR configuration_key = 'SMALL_IMAGE_QUALITY' OR configuration_key = 'MEDIUM_IMAGE_FILETYPE' OR configuration_key = 'MEDIUM_IMAGE_BACKGROUND' OR configuration_key = 'WATERMARK_MEDIUM_IMAGES' OR configuration_key = 'MEDIUM_IMAGE_QUALITY' OR configuration_key = 'LARGE_IMAGE_FILETYPE' OR configuration_key = 'LARGE_IMAGE_BACKGROUND' OR configuration_key = 'WATERMARK_LARGE_IMAGES' OR configuration_key = 'LARGE_IMAGE_QUALITY' OR configuration_key = 'WATERMARK_GRAVITY' OR configuration_key = 'IH_RESIZE' OR configuration_key = 'SHOW_UPLOADED_IMAGES';

Second Statement:

UPDATE zen_configuration SET configuration_value='REMOVED' WHERE configuration_key = 'IH_VERSION';

Maybe the two above statements could be combined, but I'm not sure.

(zen_configuration is the table name in the database and could have a different prefix ie: my_configuration)

2 Mar 2012, 11:00 PM
#239
mutinyzoo avatar

mutinyzoo

New Zenner

Join Date:
Mar 2011
Location:
Pensacola, FL
Posts:
88
Plugin Contributions:
2

Post #239 by mutinyzoo

Both Combined copy/resize and Autofix seem to be making the small image (600px wide and @ 150kb) small BEFORE creating the medium and large images, which is resulting in all the images being pixilated.

So am able to create "large" image, but then the option to resize the small one doesn't seem to be offered.

9 Mar 2012, 3:54 AM
#240
familynow avatar

familynow

Zen Follower

Join Date:
Aug 2011
Location:
Near Ottawa, Ontario, Canada
Posts:
321
Plugin Contributions:
0

Post #240 by familynow

Hi.

Just stumbled on this mod...Where the heck has this been hiding? I tripped and fell through IH2 and 3 and have been fussing around with imagemagick on my laptop for months. I'm really keen about sticking to the ZC standards...Anyway, thank god for this one! I sure hope this mod was included in 1.5

I originally installed this mod (2hrs ago) because I knew I had allot of LRG images missing. I was hoping I would re-upload them but my particular site doesn't really work for this feature because many of my images aren't as large as my large image setting. So within this mod I can't create large's.

Is there any way I could ask to have the re-upload forced on large like it is on small?

Actually, I guess I should explain why I'm trying to do this...I get alot of ppl who don't know how to exit the js when the LRG isn't present. I fear this will hurt sales over the long run by frustrating shoppers. So I guess perhaps a simpler solution might be to figure out a way to tell ZC if it doesn't find a LRG just use the small?! OR have a 'copy2large' link in IM for any image you already know won't be larger than the small.