Welcome to TalkGraphics.com
Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,932

    Default Re: Photo resolution for stretchy full width images

    Yes but then you wouldn't need a stretchy, more a squashy
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  2. #12
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: Photo resolution for stretchy full width images

    Is this a squashy as you have in mind?
    This uses a name and some CSS at the page head to limit the height.

    Arrrrgh, can't upload attachments once again. Is it just me?

    So here is a link to the page ONLINE.
    And here a link to the XAR FILE

  3. #13
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,518

    Default Re: Photo resolution for stretchy full width images

    Egg - That is awesome. You would think that is the default.

  4. #14
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,932

    Default Re: Photo resolution for stretchy full width images

    Spot on Siran, thank you. I believe this is of particular interest to Gary.

    EDIT: Cross posting here Gary. I was looking at Sirans xar.
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  5. #15
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,932

    Default Re: Photo resolution for stretchy full width images

    Hi Siran. I can simply drop another large image onto your yacht image and it scales perfectly. What I don't quite follow is if I delete your image, import my own and name it 'mysquashy' it squashes in the vertical axis. What determines the W/H ratio?

    EDIT: I notice that the code is set to height 1232px. How would I change this if I was using a 2000px image for example?

    FURTHER EDIT: Attachments back on line. They weren't this morning.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	squashy.png 
Views:	51 
Size:	4.8 KB 
ID:	116368  
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  6. #16
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,518

    Default Re: Photo resolution for stretchy full width images

    Siran - Love this too. Great solution.

  7. #17
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: Photo resolution for stretchy full width images

    Hi Egg. Are there any questions open?
    The picture is a standard stretching object. The CSS only reduces the height. To use your own picture just add a name to it, make it stretchy and adapt the CSS code in this way:
    Code:
    <style>#mysquashy{height:300px !important;}</style>
    1. Replace mysquashy with the name you have given your picture. Leave the # and the the { untouched.
    2. Replace 300 with the height (in pixels) your stretchy should keep.
    That should be it.
    If you have multiple such squashies you have to duplicate the CSS code and use individual names for each. For example:
    Code:
    <style>#mysquashy{height:300px !important;}</style>
    <style>#squashy2{height:250px !important;}</style>
    or shorter, but I don't want to irritate you.
    Code:
    <style>
    #mysquashy{height:300px !important;}
    #squashy2{height:250px !important;}
    </style>

  8. #18
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,518

    Default Re: Photo resolution for stretchy full width images

    Ah, replacing the name. Ha. Got it.

  9. #19
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,518

    Default Re: Photo resolution for stretchy full width images

    You can also crop the image using the Photo Tool to determine what part of the photo remains in the stretched image.

  10. #20
    Join Date
    May 2002
    Location
    Canada
    Posts
    3,345

    Default Re: Photo resolution for stretchy full width images

    I was thinking if we all design for 1250 res. which would fit perfectly for 1280 resolution without the scroll bar, then all one has to do is to make the picture twice that size and you will be set. Xara is not responsive so there is no sense in worrying about a larger stretchy full picture. Do I make sense?

 

 

Bookmarks

Posting Permissions

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