Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: High-Resolution logo.gif?

    Back to Photoshop. Are you saying you cant independent change the screen pixels and print pixels?
    If this is true then I would circle your question above "Code Hack?", and use your HTML knowledge. But it really would not be a hack since it would be on a template file.

  2. #12
    Join Date
    Oct 2006
    Posts
    107
    Plugin Contributions
    0

    Default Re: High-Resolution logo.gif?

    Quote Originally Posted by stagebrace View Post
    Back to Photoshop. Are you saying you cant independent change the screen pixels and print pixels?
    If this is true then I would circle your question above "Code Hack?", and use your HTML knowledge. But it really would not be a hack since it would be on a template file.
    I can change the document size and dpi resolution or the screen pixel dimensions. The higher dpi resolution I specify, the more pixels the image will be on the screen.

    What I would like to know is why the dimensions in the code I posted earlier are ignored.

  3. #13
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: High-Resolution logo.gif?

    Would you mind letting me try and adjust the picture with paint shop pro?

  4. #14
    Join Date
    Oct 2006
    Posts
    107
    Plugin Contributions
    0

    Default Re: High-Resolution logo.gif?

    Let me play around with the image file a little bit more, then I will let you have a look at it. It's good Photoshop experience for me.

    To be honest, I am more bothered by the code being ignored than the lower resolution of the logo on paper.

    Code:
     
    // added defines for header alt and text
    define('HEADER_ALT_TEXT', 'Admin Powered by Zen Cart :: The Art of E-Commerce');
    define('HEADER_LOGO_WIDTH', '200px');
    define('HEADER_LOGO_HEIGHT', '70px');
    define('HEADER_LOGO_IMAGE', 'logo.gif');

  5. #15
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: High-Resolution logo.gif?

    From what I see the default template as designed by the crew, no longer supports those variables. Its function was or can be moved over to CSS and the actual picture properties.

    But keep in mind, if you don't like the default template, change it. Thats the Zen Cart magic.

  6. #16
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: High-Resolution logo.gif?

    To print the logo at 600 dpi requires a logo.gif file that is over 1500 pixels wide, far too big for use on a monitor.
    Not sure that I am understanding what your issue here is.

    The dpi is just that - dots per inch - and does not increase the width or height of the image as you suggest.

    If I have a 1x1 inch image @ 72 dpi I can also have a 1x1 inch image at 600 dpi with only an increase in the file size Not the image dimensions.

    Being this is on the admin side and you have located the admin image dir, these images are not used for the store front (screen) and you could use a high res (large file size) image and then only you suffer the loading lag but this would be the image printed

  7. #17
    Join Date
    Oct 2006
    Posts
    107
    Plugin Contributions
    0

    Default Re: High-Resolution logo.gif?

    Quote Originally Posted by kobra View Post
    If I have a 1x1 inch image @ 72 dpi I can also have a 1x1 inch image at 600 dpi with only an increase in the file size Not the image dimensions.
    I've tried different dpi resolutions with the same screen dimensions. When printed, 72 dpi looks really bad and 600 dpi looks bad too.

    However, if I specify 600 dpi and large screen dimensions (1500 pixels wide or bigger) and then use HTML to force it down to 700 pixels wide, the image looks awesome on a laser printer.


    On the packing slip, here is what appears in the browser source file:
    Code:
     
    <img src="images/logo.gif" border="0" alt="logo" title=" logo"></td>
    The PHP code to create this looks like the following:
    Code:
    <?php echo zen_image(DIR_WS_IMAGES . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT); ?></td>
    The problem is I don't know how to specify image widths in PHP. Is this done in the PHP code above, in a stylesheet, or in a template file?

  8. #18
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: High-Resolution logo.gif?

    Kobra's earlier advice was heading in the right direction. There are three logo files, two of them similarly named. You're not being specific about which you are altering but everything that you've described would fit with you concentrating all your changes to the includes/templates/YOUR_TEMPLATE_NAME?images/logo.gif file.

    That file is used for screen display in the catalog section of your store and it's resolution is determined by the values set in the header.php file that you discussed earlier. It don't matter how many pixels you cram into this file, it's still gonna get crushed right down to those dimensions by browsers, so all them extra pixels is just wasted bandwidth for your visitors.

    The image used on invoices and other paperwork is held in admin/images/logo.gif file. This is where you can go wild and cram in as many extra pixels as your printer can stand.

    Finally, emails use the email/header.jpg file. No real constraints on resolution for this. But no point in adding too many either as you'll only blow the excess off the side of your customers' screens.

    The names and formats of any and all of these files can be changed. You just need to root out all the places that they're referenced. There aren't too many, so it's not too difficult.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #19
    Join Date
    Oct 2006
    Posts
    107
    Plugin Contributions
    0

    Default Re: High-Resolution logo.gif?

    Quote Originally Posted by kuroi View Post
    Kobra's earlier advice was heading in the right direction. There are three logo files, two of them similarly named. You're not being specific about which you are altering but everything that you've described would fit with you concentrating all your changes to the includes/templates/YOUR_TEMPLATE_NAME?images/logo.gif file.
    Re-read my original post. I specified that it was the admin/images/logo.gif file.

    Quote Originally Posted by kuroi View Post
    That file is used for screen display in the catalog section of your store and it's resolution is determined by the values set in the header.php file that you discussed earlier. It don't matter how many pixels you cram into this file, it's still gonna get crushed right down to those dimensions by browsers, so all them extra pixels is just wasted bandwidth for your visitors.
    Several posts back, I mentioned that the image dimensions for the admin/images/logo.gif file are ignored. I can change the image's ALT text, but the numbers have no effect on the sizing.

    Quote Originally Posted by kuroi View Post
    The image used on invoices and other paperwork is held in admin/images/logo.gif file. This is where you can go wild and cram in as many extra pixels as your printer can stand.
    This is precisely what I'm trying to do. I just need to know how to force the browser to size it properly on the screen. I don't know how to do it in PHP.

  10. #20
    Join Date
    Oct 2006
    Posts
    107
    Plugin Contributions
    0

    Default Re: High-Resolution logo.gif?

    Just to be clear where my problem is, here is the code.

    This is in /admin/includes/languages/english.php

    Code:
    // added defines for header alt and text
    define('HEADER_ALT_TEXT', 'Admin Home');
    define('HEADER_LOGO_WIDTH', '800');
    define('HEADER_LOGO_HEIGHT', '20');
    define('HEADER_LOGO_IMAGE', 'logo.jpg');
    I can specify any HEADER_ALT_TEXT that I want and it changes accordingly like it should. But the WIDTH and HEIGHT numbers have no effect on the displayed image size.

    If logo.jpg is 1600x800, it displays as 1600x800, not 800x20.

    Why is this happening, and how can it be fixed?

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. HELP!!!!!....Need to center My logo hench logo.gif on my main page
    By Robert Cooper in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Jul 2013, 01:33 PM
  2. Resized high resolution product images, now have jagged edges
    By strugglingnovice in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 8 Jul 2010, 08:45 PM
  3. Icon.gif and Logo.gif
    By patwithds in forum General Questions
    Replies: 5
    Last Post: 27 Aug 2009, 05:48 PM
  4. I want to print my high resolution local on invoices & packing slips
    By kachinas in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Feb 2009, 01:13 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