Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-14552

Large image size validation

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 3.0.20rc1, 3.4.12rc1, 4.0.0alpha9
    • Frontend (F)

      Exist several scenarios that occur due large image size.

      Steps to reproduce:

      1. Go to Administration -> Images, type - Icons
      2. Upload large image

      Result:
      Large image size breaks icons layout. If upload the same image to background type - layout looks fine

      Expected:
      Layout didn't break

      Steps to reproduce:

      1. Go to Administration -> Images, type - Icons
      2. Upload image with height more than 2000
      3. Go to Maps constructor
      4. Add element
      5. Choose previous uploaded image as icon

      Result:
      Appears error that "Incorrect value "2048" for "height" field: must be between 1 and 2000". But map successfully saved

      Expected:
      Can't upload such big image in Administration -> Images or can't save map

      Steps to reproduce:

      1. Go to Administration -> Images, type - Icons
      2. Upload jpg image (image size 427 KB)
      3. After upload check image size on frontend

      Result:
      Image converted to png, but size become bigger (4.2 MB)

      Expected:
      Correct converting

        1. icons_layout.png
          icons_layout.png
          71 kB
        2. image_size.png
          image_size.png
          773 kB
        3. map_icon.png
          map_icon.png
          16 kB

            zabbix.dev Zabbix Development Team
            natalja.zabbix Natalja Romancaka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: