Hi I am doing a photography site using Opencart, the problem I am having is with it resizing images. The photos are a mixture of landscape format and portrait format, the landscape ones have a White border top and bottom (apparently this is created by Opencart resizing the images) also the photo settings in admin will not work for portrait format. Is there a way to turn off image resizing (to remove the white borders) and also code in my own images sizes depending on the format? Thanks in advance. Dee
Here is a $14 extension which removes the white space created by re-sizing images with Opencart: http://www.opencart.com/index.php?route=extension/extension/info&extension_id=8810
Hi I didn't post a link because the site was in Maintenance mode, but I have turned that to off, so you can see, these are the direct links: (http://www.grantsphotography.co.uk/index.php?route=product/category&path=61) (http://www.grantsphotography.co.uk/index.php?route=product/product&path=61&product_id=50) As you will see the first page has the white (before the price overlay appears) and the second page when you navigate around the photo you will see the white top and bottom. I did take a look at the white space remover extension but I am using the latest version, which isn't listed as compatible. I want to stop open cart from resizing my images, as one default size for all images will obviously not work for a photography site and for the reason above, there are also some photos that will be in portrait format. For example I want the large landscape photos to be 518px x 346 and portraits to be 346px x 518px. Any help would be much appreciated
Off the top of my head that stuff he posted may still work and was a pretty good idea actually but you can find that stuff here... Admin->Configuration->Setting->Image you can futz with the sizes and also shut off resizing.. Image resizing saves you a ton of time which is sorta why carts have that... just a thought. You can do what you are attempting to in the admin though. If it doesn't work out just let us know. Someone can flesh that out for you. Nigel
Is there anyway to overwrite the admin photo size settings, so that open cart doesn't resize my images, so that they stay the size I enter them? I believe this would also stop the whitespace?
I am not sure you can specify image size for 2 different things in the admin panel but you can shut off image resizing entirely from there. As a quick aside here is a conversation about just that http://forum.opencart.com/viewtopic.php?f=20&t=63105 My last comment is from here If you wish to change the size of thumbnail images, go to Admin->Configuration->Setting->Image. You can also turn image resizing off if you wish, by setting "Resize Images" to "No" on this page. http://forum.opencart.com/viewtopic.php?f=5&t=1658 Nigel
Hi Nigel I looked under Setting>Image but there is no Resize Image option, there are plenty of boxes to enter sizes for different images but no mention of Resizing Images?
Ok let me check on that. They could have removed it for some reason in the latest build. Certainly par for the course this week lol.. sorry Nigel
Weird I was not able to track that down but more noteworthy, don't have an instance of opencart running to crawl in there. I did find a free iteration of the above though and it appears to be up to date. Its a vqmod, are you using that by chance? Its pretty simple to install and then you just drop the xml file from this thread in there. http://forum.opencart.com/viewtopic.php?f=123&t=71547 The mod page http://www.opencart.com/index.php?route=extension/extension/info&extension_id=7458 only to point out it will also do a few other things. Again, just need to install vqmod and then upload that xml file. hope that helps, Nigel
Hi Nigel, sorry for the late response. I have installed vqmod, do I pop that xml file into the root directly or inside the vqmod folder itself?
Thank Nigel that got rid of the White space on the large images. But my client is still not happy because she wants to be able to upload images of whatever size she wants. So what I really need to to be able to disable image resizing, is this even possible?
Hi A one for all size will not work, I was to turn off image resizing completely. Which is beginning to seem impossible
I believe that is largely impossible really since the template has different sizes in different places. That said, I have seen a few ways to deal with the pop up window image size. Nigel
I just thought maybe there was someway to edit the core files. If I get the image to look right in the pop up then it looks stupid listing image, because that is square.
Well if you make it landscape then anything that is supposed to be square is going to look crazy. 6 of one half dozen of the other there but .... I don't see this as doable really. If you want to pm me a link I may understand the issue a bit better. Its not really an opencart problem either, its a client-side logic issue. I have done tons of photog and art gallery sites. I have never encountered such as issue. Nigel
This links may help, but before you make any change check your opencart version with the articles. http://forum.opencart.com/viewtopic.php?f=106&t=37473 http://stackoverflow.com/questions/7081860/remove-the-image-resize-ratio-in-opencart
Almost but that is backwards actually. And if the aspect ratio does not stay the same its getting re-sized anyway. Close though, Nigel