[ZBX-14552] Large image size validation Created: 2018 Jul 03  Updated: 2025 May 08  Resolved: 2025 May 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.0.20rc1, 3.4.12rc1, 4.0.0alpha9
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Natalja Romancaka Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: icons, image
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File icons_layout.png     PNG File image_size.png     PNG File map_icon.png    

 Description   

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


Generated at Sun Apr 05 13:46:17 EEST 2026 using Jira 10.3.18#10030018-sha1:5642e4ad348b6c2a83ebdba689d04763a2393cab.