Results 1 to 6 of 6
  1. #1
    Join Date
    May 2010
    Posts
    6
    Plugin Contributions
    0

    Default Logo Resizing Issue

    I hope this isn't a completely redundant post because I hate repetitive post on forums; however, I searched the forums, wiki, tutorials, and search engines and have not found an answer to my problem.

    I have a large logo image (1683px × 1282px) that I need to scale down to size for the page. It is obviously way too big, and I need to shrink it down to size. The logo I am talking about is the logo in the header section. I realize I can do this in photoshop, but the tutorials and my experience in web development tells me that I should be able to do this in the php. All of the info that I have found on this subject tell me to edit header.php and save it in the custom directory, which I have done. Essentially, the image works and displays; however, it does not scale down to the specified width and height.

    If you need to see what I am talking about here is the store site, it is my first venture into zen cart and I just started working on it.
    http://www.woodvilleusa.com/store/

    Here are my settings in header.php:

    // added defines for header alt and text
    define('HEADER_ALT_TEXT', 'Woodville USA');
    define('HEADER_SALES_TEXT', '');
    define('HEADER_LOGO_WIDTH', '841px');
    define('HEADER_LOGO_HEIGHT', '641px');
    define('HEADER_LOGO_IMAGE', 'logo.jpg');


    Thank you for your time.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Logo Resizing Issue

    I recall (and I may be mistaken) that the dimension settings in header.php are "ignored". The filename, xxxxxxxx.jpg is not ignored.

    It is never a good idea anway to just get the HTML to scale an image... especially one which is your brand.

    The width of the logowrapper (possibly headerwrapper) is also controlled in the stylesheet, and that's where I specify my dimensions.

    Then I engineer the header logo in Photoshop to exactly meet those parameters.

    Image Handler 2 (IH2) is great for general images (products, icons, thumbs) as it re-works cached copies (sized and polished) of the large image.

    We now install IH2 as standard on all sites.

    Some people worry that google will not find and index your images if IH2 is installed. Personally I don't care... When people use google to find images, it's generally to steal them, not to find a shopping site.
    20 years a Zencart User

  3. #3
    Join Date
    May 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: Logo Resizing Issue

    Thanks for the quick response! I mean no disrespect when I say this, but what is the point of having the settings if they are ignored? Resizing the image manually in photoshop is an option, I had just hoped to avoid having to resize and resplice the layout images up in their new respective sizes. Oh well, if it is my only option, it could be worse.

    Thanks again for the help!

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Logo Resizing Issue

    I think the "ignoring" is a legacy issue... the settings are a hang-over from the very early days of zc

    Again... I just recall reading the fact that those settings are ignored - and perhaps the reason is the very reason I was alluding to... using html to resize an image is a sure-fire way to end up with a bad result... not what you want with your brand identity!
    20 years a Zencart User

  5. #5
    Join Date
    May 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: Logo Resizing Issue

    Haha alright, thanks. I suppose that makes a moderate amount of sense. I guess the best option will be just to resize it. Not the worst thing ever, at least it is an easy option.

    Thanks again!

  6. #6
    Join Date
    Jul 2007
    Location
    Johannesburg
    Posts
    27
    Plugin Contributions
    1

    Default Re: Logo Resizing Issue

    My header image is squashed, because the image tag is setting a height and width, and ignoring the CSS.

    I have hunted through around 30 files within the templates folder to find some hard-coded html. I've gone through all the config setting in the software in case the image is parameter driven. I can't find anything.

    Strangely the image tag gives both height and width, but the width in the image tag is overridden by the CSS, the height in the CSS is overridden by the image tag.

    I can't find header.php?

    Is there some additional place where the size of the logo in the head file is stored?
    The world is divided into 10 kinds of people, those who understand binary and those who don't.

 

 

Similar Threads

  1. Resizing email header logo
    By ticklefish1 in forum General Questions
    Replies: 5
    Last Post: 15 Apr 2009, 03:09 PM
  2. Resizing Logo.gif's Header Height
    By bendlikewillow in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Jun 2008, 03:51 PM
  3. resizing a logo
    By alillowr in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 9 May 2008, 12:30 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