Thank you!:blush:
Actually I finished what you ask for just a few minutes ago. Except for the 'vertical'. I cannot imagine what extra option that would be. Can you help me out?
Printable View
As long as the watermark.png files are present, IM will watermark all copied medium and large images. So if you want medium/large without watermark, you have to remove those watermark.png files.
If you already did, and the images with watermark still appear in your shop, then it's a caching problem in your browser. Which can be, if zen-lightbox is used, quite persistent.
If you already did, and the images with watermark still appear in Image Manager, then I need some good drinks and thinking to figure out how that is possible....
Actually it doesn't matter if a watermark is vertical or horizontal. For IM it's just an image that has to be placed somewhere on another image.
For now, you can select one of nine positions (top/middle/bottom x left/middle/right) and for the not middle options also the margins from the edge. And of course the relative size of the watermark, compared with the image width of the target image.
I think that makes it possible to get any watermark in any size at any position on the image.
I would be glad if you are willing to test the new version before I put it online. If you are, can you send me a private message with the e-mail address where I can send the zip?
Thanks
Boudewijn
Hi, thanks you for the email! I have not had the chance to play / enjoy this add-on. As soon as I do, I will let you know how i get on.
Outstanding and brilliant add-on! :clap:
Hi, my product images are now starting to get index in google. This is great! i sell art so my products can be found now. Before non were listed using IH2 as uhfgry6df86d8f76g7d6f78d87d87fd897g.jpg means nothing to google.
Thank you.
Ray
Hi Ray,
Thanks for your feedback!
That was exactely the reason why I quit IH2, reverted back to the way Zen-Cart handles images and developed IM on that existing structure.
Regards,
Boudewijn
Hello.
I have just tested the image manager 1.4 zip you emailed me. Works perfectly.. Thank you very much! Looking forward to installing on my live site.
Cheers
Michael
Hi all,
I just contributed version 1.4 of IM.
Changes in this version are:
- Added configuration options to position and size the watermark on the image
- Added message to display presence of watermark files
- Fixed wrong image URL calculated if zen-cart is in webroot subfolder
- Fixed default action should be two options: action and show attached/unattached
- Fixed missing comma in SQL installation script
- Added configurable upload folder
For those who upgrade from previous versions, an upgrade script is provided.
Enjoy!
Boudewijn
Hi,
Having a problem when running the install.sql.
I get this error:
Im using version 1.3.9f, php version 5.2.13 and mySQL version 5.0.90.Code:1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(NULL, 'Show \'Add additional image link\' link', 'IM_SHOW_ADD_IMAGE_LINK', 'no'' at line 1
in:
[INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES (NULL, 'Maximum large image width', 'IM_MAX_LARGE_WIDTH', 800, 'The maximum sizes of the small and medium size images can be set through the admin interface (Configuration->Images).
You can set the maximum width of the large files here.
', @configuration_group_id, 10, NOW(), NULL, NULL), (NULL, 'Maximum large image height', 'IM_MAX_LARGE_HEIGHT', 600, 'The maximum sizes of the small and medium size images can be set through the admin interface (Configuration->Images).
You can set the maximum height of the large files here.
', @configuration_group_id, 20, NOW(), NULL, NULL), (NULL, 'Maximum rows per page', 'IM_PAGE_LENGTH', 30, 'This is the number of rows per page that will be displayed in Image Manager.
', @configuration_group_id, 30, NOW(), NULL, NULL), (NULL, 'Enable/disable medium size images', 'IM_USE_MEDIUM_IMAGES', 'enable', 'If set to \'disable\', Image Manager will ignore medium size product images and treat them as unattached images.
Also all other functions, like generate or delete an image from a product, will only apply to small and large size images.
', @configuration_group_id, 40, NOW(), NULL, 'zen_cfg_select_option(array(\'enable\', \'disable\'),'), (NULL, 'Show popup image or link', 'IM_SHOW_POPUP_IMAGE', 'image', 'With this option set to \'image\', no separate links to images will be displayed anymore. Instead, hovering over the filename with the mouse causes the image to display underneath the filename.
With this option set to \'link\' an additional column will be displayed with a link to the image. Clicking this link will open a new window with the image.
', @configuration_group_id, 50, NOW(), NULL, 'zen_cfg_select_option(array(\'image\', \'link\'),'), (NULL, 'Folders to exclude from Image Manager', 'IM_EXCLUDE_FOLDERS_EXTRA', '', 'This option allows you to add folders which Image Manager will not display, specifically in the \'unattached\' list.
Image manager already excludes the following subfolders of the images folder:
attributes/
banners/
categories/
gift_certificates/
icons/
manufacturers/
samples/
testimonials/
uploads/
The additional folders must be entered with a trailing slash and comma separated.
', @configuration_group_id, 60, NOW(), NULL, NULL), (NULL, 'Files to include in Image Manager', 'IM_FILETYPES', 'all', 'This option allows you to choose what types of files Image Manager will handle.
If you select \'media\', only file types with media type extensions will be handled and visible in IM.
', @configuration_group_id, 70, NOW(), NULL, 'zen_cfg_select_option(array(\'media\', \'all\'),'), (NULL, 'Initial action at startup', 'IM_STARTUP_ACTION', 'show_menu', 'This option determines what Image Manager will do once started from the administrative interface. Either do nothing and just show the menu, display the unattached files, or display the attached files, the latter two according to the default options set in the Image Manager configuration.
', @configuration_group_id, 80, NOW(), NULL, 'zen_cfg_select_option(array(\'show_menu\', \'show_unattached\', \'show_attached\'),'), (NULL, 'Default value for \'Show Images\"', 'IM_IMAGE_DEFAULT', 'link', 'This option sets the default value for the \'Show Image\' option.
', @configuration_group_id, 90, NOW(), NULL, 'zen_cfg_select_option(array(\'link\', \'small_image\', \'all_images\'),'), (NULL, 'Default value for \'Product Status\'', 'IM_PRODUCT_STATUS_DEFAULT', 'on', 'This option sets the default for the \'Product Status\' option.
', @configuration_group_id, 100, NOW(), NULL, 'zen_cfg_select_option(array(\'on\', \'off\', \'all\'),'), (NULL, 'Default value for \'Show Files\'', 'IM_SHOW_FILES_DEFAULT', 'with_errors', 'This option sets the default for the \'Show Files\' option.
', @configuration_group_id, 110, NOW(), NULL, 'zen_cfg_select_option(array(\'with_errors\', \'without_errors\', \'all_files\'),'), (NULL, 'Default value for \'Sort order\'', 'IM_SORT_ORDER_DEFAULT', 'folder_filename', 'This option sets the default for the \'Sort order\' option.
', @configuration_group_id, 120, NOW(), NULL, 'zen_cfg_select_option(array(\'folder_filename\', \'product_id\', \'large_image_size\'),'), (NULL, 'Show \'Add watermark\' link', 'IM_SHOW_WATERMARK_LINK', 'no', 'When set to \'yes\', Image Manager will display a link to additionally add a watermark to images. This option will only show up in \'attached\' mode, if all image sizes have the right size, and a watermark is present in the appropriate folder.
This option has no impact on the automatic watermarking that takes place during the copying/shrinking of images.
', @configuration_group_id, 130, NOW(), NULL, 'zen_cfg_select_option(array(\'yes\', \'no\'),'), (NULL, 'Show \'Re-upload image\' link', 'IM_SHOW_REUPLOAD_LINK', 'no', 'When set to \'yes\', Image Manager will display a link to re-upload a small size image, replacing an already existing one. You can upload an image with any name; IM will store the image under the name already known. Only the image type must be the same: if the existing image is a jpg-file, the re-uploaded one must also be a jpg file.
This option will only show up in \'attached\' mode.
If the re-uploaded image is large enough, it can be used to also recreate the medium and large size images.
', @configuration_group_id, 140, NOW(), NULL, 'zen_cfg_select_option(array(\'yes\', \'no\'),') (NULL, 'Show \'Add additional image link\' link', 'IM_SHOW_ADD_IMAGE_LINK', 'no', 'When set to \'yes\', Image Manager will display a link to upload a new additional image for a product.
You can upload an image with any name; IM will store the image under the name already known, with the specified suffix added.
This option will only show up in \'attached\' mode, after first selecting a specific products-ID in the right upper box.
If the uploaded image is large enough, it can be used to also recreate the medium and large size images.
', @configuration_group_id, 150, NOW(), NULL, 'zen_cfg_select_option(array(\'yes\', \'no\'),');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Can anyone help?
Alex,
What version of IM are you trying to install? From the SQL result I can see there is a comma missing in the SQL statement and that was a bug in IM 1.3.
Please try again with IM 1.4 and make sure you have the install.sql from that version. You might have to run uninstall.sql first to clean up before running the install.sql again.
Boudewijn
Thank you Boudewijn. I was using 1.3. Now upgraded to 1.4 and all is working so far.
Thanks
Hello,
Can anyone please help with this error in admin/image manager:
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/MYSITE/public_html/images/3ds/mcsc.gif/) is not within the allowed path(s): (/home/MYSITE/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/MYSITE/public_html/admin/includes/functions/extra_functions/function_image_manager.php on line 635
The error is over and over again for every single image i have in products catalog.
I already tried setting permissions to 777 almost to any folder or file... no result.
I tried reinstall the image manager i had the same result.
I notice the error after rename admin folder to another name. I restore previous name and make all the neccesary changes back to configure.php.
I have no idea what to do next. I'm using zen cart v1.3.9f and the image manager version is 1.4
If anybody has some ideas, please share it...
Thanks!
Hi,
Have you checked the paths in your <admin>/includes/configure.php? They are affected by renaming the admin folder.
Boudewijn
I consider switching from IH to IM, do I need to reupload all files?
I don't use IH myself, so I can't check it on my installation.
But if the images, with their original names that are mentioned in the product details, are still present in the images/ folder or subordinate folders, and of sufficient size to use as large images, you don't have to re-upload them.
Boudewijn
Hi,
Yes, I did. I followed the instruction from this tutorial when changing the admin folder name:
https://www.zen-cart.com/tutorials/index.php?article=33
After changing the admin folder everything works well. After some time i noticed the issue with the IM mentioned above.
I had a backup file of the configure.php from MYADMIN/includes/ and i restore the admin name to default. Still no change, i have the same error with my IM.
I'm not sure if the error comes from renaming the admin. I just recall being the last modification I had made on my website before the IM error ...
No, I did not made any changes to htaccess. As per php.ini i don't even know where is it or where to find it.
I do however have a reseller account on my provider server due to multiple domains host there. I had some changes lately like:
- ask my provider to disable safe mode for another different domain where I have a drupal instalation and some modules are not running with this feature. But he confirm me that safe mode was disable only for that different account.
- i changed the password from WHM page for this domain we are talking about at the same time as i change the admin folder name. As told, i reverse the name of the admin folder back to "admin" and restore the changes in configure.php using the backup file made previous to this change. I did not change back the password from WHM...I really don't think i recall the old one..
Do you think this might be the problem?
Any ideas?
Thanks
I just found another error:
Success: The database has been saved.
Warning CAUTION: Your /admin/ foldername should be renamed to something less common, to prevent unauthorized access.
Error ERROR: This backup script seldom works when safe_mode is enabled or open_basedir restrictions are in effect.
If you get no errors doing a backup, check to see whether the file is less than 200kb. If so, then the backup is likely unreliable.
This is from the module Database backup that i use. I did not have this error before... Do you thing might be related? Is there a relation between safe_mode and open_basedir restriction?
Thanks
Both safe mode and basedir restrictions put limitations on what PHP scripts can do. I don't oversee what impact safe mode set to on has on Zen-Cart, but both IM and the backup addon cannot function normally with the basedir restriction set to on. This prevents a script from accessing parts of the filesystem, and both addons need access to create files.
I begin to suspect that your ISP has changed these settings, causing the problems you have now.
If you run server info from the admin interface of Zen-Cart, and lookup open_basedir, you can see what setting is in effect right now. The same applies to safe_mode.
I just did and the results are:
open_basedir /home/MYUSER/:/usr/lib/php:/usr/local/lib/php:/tmp no value
PHP Safe Mode: Off
No value for open_basedir means set to one?
I will talk to my ISP to make the changes and post than a reply with the effects. Thanks!
Can anyone please help with this error in image manager?
I get this errors like 50 times before the images are showing up. I have to scroll down if I like to change something.
------------------------
Warning: Division by zero in / naspex.info/spiritwear/designer.t-shirt.tshirt.tee/admin.naspex.13/includes/functions/extra_functions/function_image_manager.php on line 283
Warning: Division by zero in /naspex.info/spiritwear/designer.t-shirt.tshirt.tee/admin.naspex.13/includes/functions/extra_functions/function_image_manager.php on line 232
Warning: Division by zero in /naspex.info/spiritwear/designer.t-shirt.tshirt.tee/admin.naspex.13/includes/functions/extra_functions/function_image_manager.php on line 327
Folder rights are sufficient
------------------------
I Install Image Manager on zencart 1.3.9h Upload fills and SQL.
If anybody has an idea how I can fix it.
Thanks!
Hi,
In your configuration settings, look for Images -> Small Image Height, and Images -> Product Info - Image Height. I suspect both are either not set or set to 0. They should contain a numeric value greater than 0.
In the next version of IM I will add a check for correct configuration values of the image sizes.
Boudewijn
[FONT=Arial]Thanks for the fast replay, you made my day.
Everything works perfect.
[/FONT] [FONT=Arial Black][FONT=Arial]Thanks have a good day too[/FONT] :smile::thumbsup:
[/FONT]
This is going to sound like a stupid questions but....
I'm looking for an easier way for my client to upload, resize and manage images.
I'd also like the ability for the client to see the main product image on both the catalogue and attribute controller page.
As I've only just stumbled upon this add on, and as there is no readme or instructions on the download - what does it do?
Hi,
There are no stupid questions, only stupid answers :smile:
All info about Image manager are in image_manager.txt, which is part of the package.
If you have any questions after reading the info, please don't hesitate to ask.....
Boudewijn
Well, there's me looking for the readme.txt file that I'm accustomed to seeing and missing the image_manager.txt one. :laugh:
A few questions perhaps someone knows the answer to:
The hurdle I have is that a client would generally upload a massive image file supplied from their product suppliers. This image file then needs to be resized for large, medium, and small. I'm looking for a way of simplifying that process for the client.
I assume it doesn't resize the image when a user adds it via the add product page. Is that correct?
What naming convention on the images? Original image in different folder, or adding _MED etc etc
When resizing the original large image, does it create a new image with a different name or resize the original?
After uploading an image in add product, then going to image manager is there a way to automatically resize either all or all new images? So that the client doesn't have to go searching for the dozen or so new products/images that he just added so that he can resize them?
I'm testing this mod on a 139h zen cart. After resizing the images I noticed the image created as the large image was loading really slow. I then noticed the large image that was created was very large in kilobytes. For instance the main image that was uploaded is 44 KB and the large image that image manager creates is 238 Kb. Are there any settings that will restrain the weight of that large image?
Hi,
1. That is correct. IM is a true add-on which does not alter any existing code. Therefore, images that are initially uploaded from the product page, must be copied/resized later from the IM-page.
2. IM follows the naming and structure conventions, and settings from Zen-Cart. The small images are in images/ or any structure from there (images/bottles/, images/glasses/ etc), the medium size images in images/medium/ with the same subordinate structure (images/medium/bottles etc). The same applies for large images.
_MED and _LRG are added to the filename for medium and large images, or whatever suffix is set in the configuration settings for Zen-Cart (Configuration->Images)
3. It saves a copy of the original file, with the extension .bak. After that the file is resized, keeping the existing name.
4. There is no 'fix all' option. mainly due to the fact that various actions are possible, dependent on the situation. I am thinking though of one specific situation, where one large original exists and no medium and large image yet. Fixing this could become a 'one click' action.
It is not hard to find the new images. Choose 'Show files: with errors' and only those images will appear.
Boudewijn
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?
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?
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.
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
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.
""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.
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?
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.
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!
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:
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!
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?
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!
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.
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.
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.
As you can read, I have no intention to provide this with IM.
Thanks!!!! And of course it's no problems to wait a few days ;-)
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.
Hi,
Were you able to run the Image Manager SQL-patch? Or did it happen before that and after installation of the files?
Boudewijn
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.
Can you try to run the uninstall script, or remove the IM-configs with phpadmin? And then see what happens?
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
???
I still have no idea about why a 403 occurs. Maybe it's just simple. Did you check the access rights to the script, mentioned in the message? The message is sent from the webserver, being unable to access the file.
I did find an issue in the install script of IM, but I doubt very much if that can cause the trouble you have. It's about using escaped single quotes in configuration item titles.
Nevertheless, I would like you to use the new script and try where it gets you. Can you send me your emailaddress, so I can send you the script? My emailaddress is in the image_manager.txt file, in the header.
sure.. i will PM you it.. im not by a computer ATM
Hi, I will start testing today and try to findout why once i install IM I get a 403 error when trying to run most SQL patches via the ZC admin.
I cancelled the PayPal e-cheque and re-issued the payment to be a direct bank transfer. You should have this in your paypal account as we speak. It's not much but I hope it is enough to show my gratitude.
Cheers
Dutchy
Hi Dutchy,
Got it! Thanks very much!!!!! The fact that you took the initiative to make a donation is already showing gratitude and besides that, it's above my expectation :-)
If you're interested, I can send you the beta 1.6 package, which includes the functions described above on this forum. Still beta but I tested it quite thorougly and it's already running on my production ZC.
Beste regards,
Boudewijn
Im very much interested. Image Manager is a great mod! Sadly, it might be next week before I get a chance to install it as I'm ultra busy :(
Regards the 403 error: I am at a loss as to why this has suddenly started to happen. I created a new zc test site this morning, with NO mods at all. I ran
DELETE FROM admin WHERE admin_name = 'Admin'; INSERT INTO admin (admin_name, admin_email, admin_pass, admin_level) VALUES ('Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);
Which was working last week but now even on a new site with no mods i get the 403 error when trying to run. I think this is more likely a hosting issue. I have emailed my hosts and asked for their input.
I'm no longer sure it has anything to do with IM but I will keep you up-to-date
404 error i meant.
basically this is returned
------------------------
Forbidden
You don't have permission to access /im-test/adminim/sqlpatch.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
-------------------------
in the server error logs i get this
-------------
[Mon Feb 07 12:51:05 2011] [error] [client xx.xxx.xxx.xxx] File does not exist: /home/zctest/public_html/403.shtml, referer: http:// mytestsite.com/im-test/adminim/sqlpatch.php
-------------
but when i look at the files on the server /sqlpatch.php is there.
but this is off IM topic. lol
This message indicates that the file 403.shtml does not exist. It mentions sqlpatch.php only as the script that causes the redirection to this page. As the reason for the redirection is mentioned:
If you can start sqlpatch.php but cannot enter sql statements with it, I guess the input parameters for the script are scanned somewhere (htaccess?) for instance to prevent sql injection in scripts.
But as i"m not a nix/nux man I fear I can't help you any further :-(
Of course this was all off-topic too ;-)
Hello,
thank you for a great plugin, helped a lot.
I am not sure if I overlooked something but I cannot find the link or button to delete an additional picture in Image manager.
There is only option to reupload the picture.
What if I decide to get rid of some additional pictures? How can I do that without going to FTP?
Thank you
Hi,
This is no 'one-click' delete yet, but needs 3.
- Delete the large image
- Delete the medium image
- Delete the small image
The link for the latter will appear only after the large and medium size additional images are deleted.
I will see if I can add a link to remove all three in one go in the next version of IM.
Best regards,
Boudewijn
Thanks for a quick reply, however I don't see option to delete the small picture.
It appears only under large and medium.
Oh, it is 1.4
I see now in addons there was this new version added at the end of January
thank you, I will try that!
Can I just replace files, will that not affect images that are already uploaded there?
Great, many thanks, it is done now!
IMAGE MANAGER VERSION 1.6 AVAILABLE IN THE DOWNLOADS SECTION
Hi all,
As of about now the new version of IM is available for download. Changes from the last version are:
- Added check for differences in upper/lowercase filenames in DB and filesys (Windows only)
- Added option to delete all sizes of one additional image at once
- Added option to collect BAK files in specified folder
- Added Autofix (perform available combi functions)
- Fixed bug in folder creation function
- Fixed recognition of .BAK files (uppercase)
- Fixed use of single quotes in install script
- Fixed no folder rights message if only menu is shown
Instructions for upgrade/installation are in the image_manager.txt file.
Enjoy!
Boudewijn
Is this possible water mark when people try to steal the picture?
Even when screen printing/copy?
When the pictures are shown on screen, they are already downloaded in the browser. From that point, there is no way to control what people do with it. The thing that you can do, is watermark the pictures before that time, on creation of the small/medium/large images. And that is what IM can do.
Boudewijn
is there any way to copy the original files to some specific folder when resizing the small?
This is already a feature of IM. On resize of small, the original file is always kept with the extension .BAK. You can choose if it is saved in it's residing folder or in a separate "BAK" folder.
See the option "Recycle Bin folder" in the IM configuration settings.
Hi there!
How can I use Image Manager to check for non-used images?
Option "Show Files" click "Not attached"
Hey guys. I was wondering if any of you might have seen this error from the image manager mod:
"Fatal error: Out of memory (allocated 64749568) (tried to allocate 44 bytes) in /image_manager.php on line 508
"
I think the problem might be more from how many images I have than from the mod. I probably have close to 85,000 images.
I was actually planning on using this mod to help me delete many of the un-needed images but it doesn't seep that it can quite handle that many.
Any suggestions??
Thanks in advance
Jeremy
Hi Jeremy,
IM can handle that number of images, but for such quantities is requires more memory than you have (64M).
So the first suggestion is to ask your ISP for more memory.
Second suggestion: temporarily exclude some image folders from IM (see the admin options). I'm not sure if this will help but it's worth a try.
Boudewijn
Ok. Thanks for the reply. They must have me on some sort of cap since there's no way there's only 64MB of memory. Guess I'm hogging all the RAM. Thanks for the tip I'll see how it works and let ya know.
Cheers
Well that seemss to have worked. Any ideas to delete all listed instean of ticking the check box for all 29000? HAHA! Also would there be a way to exclude files in the main image folder but show all the files in one of the sub folders ex: medium??
Thanks a bunch
And to the rest of you guys... this really does work with a BUNCH of files.
Hi,
I'm glad that worked! Your ISP can force settings on the PHP scripts that you run, and one of those is the maximum amount of RAM that a script is allowed to use. Generally you are not able to increase that amount yourself, but you have to ask your ISP to do it.
Your questions:
In this version of IM, there is no "check all" button yet. Won't be much work though to include this in the next version (will not be out until after my holidays in july)
You mention "main image folder" here, do you mean the folders where your small images reside, or the main images folder of Zen-Cart (/images)? I myself have all images organised in subfolders of /image, so it can make a difference.
Boudewijn
Installed in 1.3.9 and double checked the files that are supposed to be in their correct directories, in tools i see BOX_TOOLS_IMAGE_MANAGER and when i select get this error
( ! ) Fatal error: Call to undefined function IMCheckBAKFolder() in C:\wamp\www\wind\image_manager.php on line 84
Call Stack
# Time Memory Function Location
1 0.0256 579312 {main}( ) ..\image_manager.php:0
Any ideas ?
Thank you
This means that a language constant is not found. Can you check if the file image_manager.php is in <admin>/includes/languages/<your language>/extra_definitions, AND is correct (i.e. including the definition you mentioned)?
It seems that the file function_image_manager.php is either not correct, or not included while loading ZC. Please check if it is present in the folder <admin>/includes/functions/extra_functions AND not corrupt.
Hi Boudewijn
Got it thank you
Hi Boudewijn
I must be missing important files because after install I don't see an image manager area other than the Configuration>image manager.
I installed Image Manager v.1.6 onto a previous zen cart v.1.3.9f that already had lots of images. I followed the install and do not see any results.
During install of the install.sql it processed 9 statements (I think there were 9) and I do have the Configuration>Image Manager.
My problem is I don't think this installed correctly or I am missing files and here is why:Any help would be greatly appreciated. You don't know how bad I need this. I mean the option to be able to clean up images that are no longer in use is long overdue. My only problem is I don't have this working yet.
- After install I set the large images to 600 by 600. The images still show huge (much larger than 600 by 600).
- I do have the Configuartion>Image Manager Settings but I don't see an image manager anywhere else. Is there supposed to be one under tools>Image manager? If not where do I go to see the attached and unatached images and to clean them up? I don't see this anywhere.
Hi,
Where did you set the 600x600? In the IM-settings? This is not a setting to determine how large images will be displayed, but to what size they are reduced, by you, through the IM adim interface.
After installation you should have a Tools->Image Manager option in your admin interface. If it's not there, files are either missing or corrupt. You might try to re-upload them and check if they are in the designated folders.
Beside this, my advice is to make a backup of your images folder before you start the big cleanup.
Oh btw the new version 1.7 has an option to select all files on a page for deletion. In your case that might be extremely handy. I just did not publish 1.7 yet, because it's only a minor change. If you want to try it, please send me an emailaddress in a private message, and I'll send the package there.
Boudewijn
Well I found the problem. I uploaded all the files into the includes area of my store instead of the: Admin/includes. I was thrown off because most add-ons have an admin folder showing in the folder structure.
I deleted files and uploaded into the correct area (admin folder) and it now shows. I suspected because I did not see an admin folder, but if the link location is: tools/image manager, there would have to be an admin folder upload in the admin. Then I read the instructions again and found that you do mention the admin folder in your instructions. :blush:
This module is much needed. And you are right the ability to delete multiple images per page will be a huge timesaver. I am looking at 8 pages of unused images as of now, so I am looking forward to the update. Thank you so much!
----------------------------------------------------------------------------------------------------------------------------------------------
Under Configuration/Image Manager line one says: "Maximum large image width". Next line below is: "Maximum large image height". I had set both to 600.Quote:
Where did you set the 600x600? In the IM-settings? This is not a setting to determine how large images will be displayed, but to what size they are reduced, by you, through the IM adim interface.
On the right of Maximum image width where you edit I see this: "It came with a value of 800. I changed it to 600. So I assumed this meant 600 px would be the maximum image width displayed to visitors. Is this not the case?Code:Maximum large image width
Please make any necessary changes
Maximum large image width
The maximum sizes of the small and medium size images can be set through the admin interface (Configuration->Images).
You can set the maximum width of the large files here.
Got it! The settings are correct it is set at 600px X 600 px via the Configuration/Image Manager line 1 and 2 settings. But in order for the image to show with the resize I first have to go to: Tools/Image Manager, select the attached images, and then click the "Combined copy/resize" text next to each image to re-size the images. Awesome module thank you so much!
No, it's the max size for newly processed images. So, if you would change the value to 400px, nothing will actually happen. The visitor still sees the 600px image.
Only after you physically resized the images, using the IM admin interface, the visitor will notice.
After posting this I saw your post crossed mine. I'm glad you worked it out!
Image Manager 1.8 is available from the Add On section!
New in this version:
- Option to check/uncheck all files on page for deletion
- Support for Zen-Cart 1.5.0
Please read the instructions carefully before installation/upgrade!
Boudewijn
I've been using IM for over a year and I love it, but something new has come up. I can upload a product image through the new product form and see the original just fine. The problem appears when I make medium and large versions - the generated images have the wrong permissions and don't appear.
I've tested using my FTP program. I can see them appear with permissions of 600 and manually changing them to 644 makes everything work.
ZC v.1.3.9h, IM v.1.7, hosted at GoDaddy.
Any help, TIA.