Zum Hauptinhalt gehen

Handling High Resolution Images with FirstSpirit

Kommentare

5 Kommentare

  • Zendesk API User
    Author: essmann - 9/11/2013 14:47

    Nice post. But I have some doubt regarding the solution for sync'd cropping: If one uses the ContentCreator (fka WebEdit) she will crop the LD resolution and the script will fail.

    My first thought to solve this, is using a LD-scaled HD version of images in the preview like in your first aproach above. You already stated the disadvantage of some data overhead. Maybe not a major issue in an author environment.

    Does anyone have a smarter approach solving this?

    0
  • Zendesk API User
    Author: sglock - 9/30/2013 14:52

    Hi Bernd, cropping in the ContentCreator requires a resolution-parameter for the editorId(). It is indeed possible to to crop the HD-version but display the LD-picture:

    <img$CMS_VALUE(editorId(editorName:"picture", resolution:"square_2x"))$      src="$CMS_REF(picture, res:"square")$" >

    This minimizes overhead but comes with the huge disadvantage that the crop is not visible right away as the script runs at a later stage. Best choice seems to be using HD-resolution for both and live with the collateral load.

    0
  • Zendesk API User
    Author: tlegat - 2/26/2016 11:01

    Is there something like a follow-up article (as img srcset and picture are finally out there) or a best practise answer regarding cropped images?

    I would tend to agree with Bernd on the acceptance of overhead for author environments.

    0
  • Zendesk API User
    Author: bIT_sosswald - 9/19/2017 12:01

    Hi sglock​,

    is there a more efficient way to deal with 2x, 3x, 4x resolutions?

    It would be great to have simply the possibility to do something like this.

    <img src="$CMS_REF(image, res:"image", multiplier:2)$">

    So I don't have to create extra resolutions and handle the cropping and all that other stuff. An editor could crop an image for a specific resolution or even upload another image for a resolution with no extra workflow which has to be executed.

    Is there some functionality like this?

    PS: Ok, I see up scaling would not work. :smileywink: But down scaling could be a thing.

    Greetings

    Sandro

    0
  • Zendesk API User
    Author: sglock - 9/22/2017 10:56

    Hi Sandro,

    Like you said, scaling up is critical - it's rather dividing than multiplying. Frankly, I am not sure if this approach gave the code a better readability or saves a lot development efforts. There's currently no on-board mechanism to handle "associated" resolutions, so you'll have to go with manual suffixes for image resolutions. As always, you can file a feature request to get some feedback from the community!

    Thanks


    Sebastian

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.