Opencart Urgent Help Help

Discussion in 'eCommerce' started by Dee2007, Apr 18, 2013.

  1. #1
    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
     
    Dee2007, Apr 18, 2013 IP
  2. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #2
    Do you have a link? Would have to look at a few things but that is a tad problematic.

    Nigel
     
    Nigel Lew, Apr 18, 2013 IP
  3. Cybercon

    Cybercon Active Member

    Messages:
    103
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    88
    #3
    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
     
    Cybercon, Apr 18, 2013 IP
  4. Dee2007

    Dee2007 Active Member

    Messages:
    1,185
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    88
    #4
    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 :)
     
    Last edited: Apr 18, 2013
    Dee2007, Apr 18, 2013 IP
  5. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #5
    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
     
    Nigel Lew, Apr 18, 2013 IP
  6. Dee2007

    Dee2007 Active Member

    Messages:
    1,185
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    88
    #6
    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?
     
    Dee2007, Apr 18, 2013 IP
  7. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #7
    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
     
    Nigel Lew, Apr 18, 2013 IP
  8. Dee2007

    Dee2007 Active Member

    Messages:
    1,185
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    88
    #8
    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?
     
    Dee2007, Apr 18, 2013 IP
  9. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #9
    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
     
    Nigel Lew, Apr 18, 2013 IP
  10. Dee2007

    Dee2007 Active Member

    Messages:
    1,185
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    88
    #10
    Thanks, much appreciated :)
     
    Dee2007, Apr 18, 2013 IP
  11. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #11
    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
     
    Nigel Lew, Apr 18, 2013 IP
  12. Dee2007

    Dee2007 Active Member

    Messages:
    1,185
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    88
    #12
    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?
     
    Dee2007, May 1, 2013 IP
  13. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #13
    Hi, the xml file goes in /vqmod/xml ;)

    Nigel
     
    Nigel Lew, May 1, 2013 IP
  14. Dee2007

    Dee2007 Active Member

    Messages:
    1,185
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    88
    #14
    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?
     
    Dee2007, May 1, 2013 IP
  15. Dee2007

    Dee2007 Active Member

    Messages:
    1,185
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    88
    #15
    Hi

    A one for all size will not work, I was to turn off image resizing completely. Which is beginning to seem impossible :(
     
    Dee2007, May 3, 2013 IP
  16. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #16
    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
     
    Nigel Lew, May 3, 2013 IP
  17. Dee2007

    Dee2007 Active Member

    Messages:
    1,185
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    88
    #17
    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.
     
    Dee2007, May 4, 2013 IP
  18. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #18
    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
     
    Nigel Lew, May 4, 2013 IP
  19. Isuru

    Isuru Active Member

    Messages:
    363
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    68
    #19
    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
     
    Isuru, May 4, 2013 IP
  20. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #20
    Nigel Lew, May 4, 2013 IP