Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions data/filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -5438,6 +5438,15 @@
"string"
]
},
{
"description": "The image quality, from 10 to 90.",
"name": "quality",
"positional": false,
"required": false,
"types": [
"number"
]
},
{
"description": "The desired image width, in pixels.",
"name": "width",
Expand Down Expand Up @@ -5525,6 +5534,16 @@
"parameter": true,
"display_type": "text",
"show_data_tab": true
},
{
"name": "quality",
"description": "Specify the image quality using an integer from `10` to `90`. Lower values can reduce file size, but they also reduce visual quality. If you omit `quality`, then Shopify selects the quality automatically based on the output format and encoding. Omitting `quality` isn't equivalent to setting it to `100`. The `image_url` filter doesn't guarantee byte-identical output, even when the requested dimensions match the source image, because Shopify's CDN might re-encode the image or negotiate a different output format.\n",
"syntax": "variable | image_url: quality: number",
"path": "/products/health-potion",
"raw_liquid": "{{ product | image_url: width: 450, quality: 80 }}",
"parameter": true,
"display_type": "text",
"show_data_tab": true
}
],
"summary": "Returns the [CDN URL](/themes/best-practices/performance/platform#shopify-cdn) for an image.",
Expand Down
Loading