Results 1 to 10 of 10
  1. #1

    red flag Icon image resizing problem

    I have a small problem on the checkout page where the shipping method is selected, the Canada Post gif is 120x28 .The small image height and width in admin is set to 100 x 100 and this affects the Canada Post gif image on the checout page and makes the Canada Post gif 100 x 100. I have been looking but there is no place i can find where the size of that image is controlled, unless there is a way to exclude certain images from being resized by the admin settings.
    could you give me some help on this please ?
    Regards

  2. #2

    Default Re: HOW-TO: Image Preparation

    I have one image on my site that gets resized by the small image settings in admin, is there a way to exclude an image from the size setings in admin ?

    Thank you.

  3. #3
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: HOW-TO: Image Preparation

    Quote Originally Posted by windsurfer View Post
    I have one image on my site that gets resized by the small image settings in admin, is there a way to exclude an image from the size setings in admin ?

    Thank you.
    Not if it's a product or category image..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  4. #4

    Default Re: HOW-TO: Image Preparation

    It is not a product or category, the image is located on the checkout page, the Canada Post Logo image is affected by these settings and it puts it all out of proportion.

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: HOW-TO: Image Preparation

    Quote Originally Posted by windsurfer View Post
    It is not a product or category, the image is located on the checkout page, the Canada Post Logo image is affected by these settings and it puts it all out of proportion.
    You probably should post this in a new thread.. (I'd include a screen print and/or link to the page you are referring to in your new post) What you are asking about is a tad off topic for this thread which is about image preparation/optimization.. You might get a better response if you were to post this question in it's own post..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #6

    Default Re: HOW-TO: Image Preparation

    Sorry my mistake, I thought this was a post about image preparation.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: HOW-TO: Image Preparation

    Quote Originally Posted by windsurfer View Post
    Sorry my mistake, I thought this was a post about image preparation.
    Exactly. You had posted in a thread about image preparation. But you're asking about a problem that has nothing to do with creating new images for your site.

    Your various posts have been merged from multiple threads into this one, since it's a unique problem affecting you specifically.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Icon image resizing problem

    Quote Originally Posted by windsurfer View Post
    I have a small problem on the checkout page where the shipping method is selected, the Canada Post gif is 120x28 .The small image height and width in admin is set to 100 x 100 and this affects the Canada Post gif image on the checout page and makes the Canada Post gif 100 x 100. I have been looking but there is no place i can find where the size of that image is controlled, unless there is a way to exclude certain images from being resized by the admin settings.
    could you give me some help on this please ?
    Regards
    Of the hundreds of people using the CP module, nobody else has complained about this, so that suggests to me that it's being resized by stuff you've got set in your admin. Likely you've set your images settings to "force" resizing of BOTH width and height, which is forcing it to stretch the image to the dimensions set as default.

    So, you have two options:
    - change your admin image force-resizing settings to be less rigid --- this may or may not have knock-on effects related to your product/category images (in which case you *could* go back to the other thread about Image Preparation, because those concepts *would* then apply to *that* situation, but unrelated to your payment module's logo/icon.

    - or tamper with the code in your CP module to force it to set dimensions on the image when it prepares output for the browser.
    Code:
        if (zen_not_null($this->icon)) $this->quotes['icon'] = zen_image($this->icon, $this->title);
    becomes
    Code:
        if (zen_not_null($this->icon)) $this->quotes['icon'] = zen_image($this->icon, $this->title, '44', '55');
    (where you would replace 44 with your icon's width, and 55 with its height)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9

    Default Re: Icon image resizing problem

    THank you, i changed the code and that works, thanks. I just spent almost an hour trying to find what you are reffering to as image force-resizing and have not been able to find anything in zen cart or on the internet about these settings. Am i not seeing something here ?

  10. #10
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Icon image resizing problem

    What are your admin settings under Configuration->Images for:
    - Calculate Image Size
    - Image - Use Proportional Images on Products and Categories
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v153 Larger image popup not resizing - image is tall and skinny
    By laurelsstitchery in forum General Questions
    Replies: 4
    Last Post: 13 Oct 2014, 05:06 PM
  2. Little header image problem ("no image" icon
    By sfklaas in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Jun 2008, 08:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg