Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-29580

ImageVariation has height and width set to NULL

    Details

      Description

      Image Aliases has height and width not available (set to NULL).

      Steps to reproduce:
      1. Create template for ezimage_field:

      {% block ezimage_field %}
          {% spaceless %}
              {% if not ez_is_field_empty( content, field ) %}
                  {% set imageAlias = ez_image_alias( field, versionInfo, parameters.alias  ) %}
                  {{ dump(imageAlias.height) }} {{ dump(imageAlias.width) }}
              {% endif %}
          {% endspaceless %}
      {% endblock %}
      

      2. Define new image_variation:

      image_variations:
          small:
              reference: null
                  filters:
                      - { name: geometry/scaledownonly, params: [100, 160] }
      

      3. Create new Image content.
      4. Display Image using provided image variation and template:

      {{ ez_render_field(content, 'image', { parameters: { 'alias': 'small' }, template: 'ezimage.html.twig' }) }}
      

      Results:
      Image Alias will have it width and height set to NULL.

      Expected result:
      Actual width and height of an Image Alias.

        Activity

        Mateusz Bieniek created issue -
        Mateusz Bieniek made changes -
        Field Original Value New Value
        Link This issue relates to CS-6965 [ CS-6965 ]
        Mateusz Bieniek made changes -
        Status Open [ 1 ] Confirmed [ 10037 ]
        Mateusz Bieniek made changes -
        Status Confirmed [ 10037 ] InputQ [ 10001 ]
        Hide
        André Rømcke added a comment -

        Closing this issues as won't fix as 5.4 is no longer within regular maintenance period. For those looking to get feature like this, please upgrade to eZ Platform 2.x with legacy bridge which adds features like this and many more.

        Show
        André Rømcke added a comment - Closing this issues as won't fix as 5.4 is no longer within regular maintenance period. For those looking to get feature like this, please upgrade to eZ Platform 2.x with legacy bridge which adds features like this and many more.
        André Rømcke made changes -
        Status InputQ [ 10001 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Confirmed Confirmed
        3m 11s 1 mateusz.biniek@ez.no 04/Sep/18 10:57 AM
        Confirmed Confirmed InputQ InputQ
        7s 1 mateusz.biniek@ez.no 04/Sep/18 10:57 AM
        InputQ InputQ Closed Closed
        104d 4h 23m 1 André Rømcke 17/Dec/18 2:21 PM

          People

          • Assignee:
            Unassigned
            Reporter:
            Mateusz Bieniek
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: