Announcement

Collapse
No announcement yet.

No Constraints works, Resize to fit doesn't

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    No Constraints works, Resize to fit doesn't

    When Importing from a flat file to create/add new products the Main image type gets assigned as expected.

    When Rendering the Product Page with "No Constraints" the main image displays as expected.
    When "Resize to fit within bounding box" is used there is no image displayed and also not available. Turns out the resized image hadn't been generated.

    I am not sure I've ever known this nuance. How/when/what triggers the resize?

    Notes: the source image file does already exist in the graphics folder.

    Thanks,

    Scott
    Need to offer Shipping Insurance?
    Interactive Design Solutions https://www.myids.net
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    Competitive Rates, Custom Modules and Integrations, Store Integration
    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
    My T-shirt Collection is mostly MivaCon T-shirts!!

    #2
    Originally posted by ids View Post
    When Importing from a flat file to create/add new products the Main image type gets assigned as expected.

    When Rendering the Product Page with "No Constraints" the main image displays as expected.
    When "Resize to fit within bounding box" is used there is no image displayed and also not available. Turns out the resized image hadn't been generated.

    I am not sure I've ever known this nuance. How/when/what triggers the resize?

    Notes: the source image file does already exist in the graphics folder.

    Thanks,

    Scott
    It "should" resize on the fly.
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    Comment


      #3
      Resize On-the-fly meaning when the product page loads on the front-end?
      That is what I was thinking but it's not executing this way. IOW, I thought the image machine would grab the Main image type filename and look for a resized version of the file and if not found would create the resized file.

      If I recall correctly, when creating the product manually and uploading the image, the process works as expected. But, not with a flat file.

      Scott
      Need to offer Shipping Insurance?
      Interactive Design Solutions https://www.myids.net
      MivaMerchant Business Partner | Certified MivaMerchant Web Developer
      Competitive Rates, Custom Modules and Integrations, Store Integration
      AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
      My T-shirt Collection is mostly MivaCon T-shirts!!

      Comment


        #4
        Originally posted by ids View Post
        Resize On-the-fly meaning when the product page loads on the front-end?
        That is what I was thinking but it's not executing this way. IOW, I thought the image machine would grab the Main image type filename and look for a resized version of the file and if not found would create the resized file.

        If I recall correctly, when creating the product manually and uploading the image, the process works as expected. But, not with a flat file.

        Scott
        Hi Scott
        Leslie is correct, the resized image should be generated at every page hit where the resized image is Needed. But it should only be generated after a check to see that it has not already been generated.

        Two things I can think of are.
        1. The images are being uploaded to a folder that the GD image library doesn’t have permissions to write to.
        2. The import file is using a legacy image field (thumbnail or full size image) instead of an image type.

        For the first scenario you can check this by uploading an image to a product in admin and checking the file path that it was uploaded to, then comparing that with one that was FTP’d up and added to that same product. If the file paths are different you would need to check the folder permissions on the server side to ensure that they match

        For the second, after uploading the images and importing the flat file, check to see that the images are showing up under “Edit product > images” tab, and not “Edit Product > Legacy Images” the legacy image fields still work and can be displayed but do not support resizing.

        Hope this helps.

        -Eric
        Eric Foresman
        Software Tester
        Miva Merchant
        http://www.mivamerchant.com/
        [email protected]

        Comment

        Working...
        X