<p>If you want to check all assets across all sources, it'd be this:</p>

<pre><code>{% set assets = craft.assets.width('&gt; ' ~ 1000).find() %}
</code></pre>

<p>If you want all assets from a particular source, it'd be:</p>

<pre><code>{% set assets = craft.assets.source('sourceHandle').width('&gt; ' ~ 1004).find() %}
</code></pre>

CC BY-SA 3.0
2014-12-09T17:59:30.907Z
Thats great thanks. Slowly unleashing the power or craft!
Spotd
CC BY-SA 3.0
2014-12-09T17:42:38.890Z
2014-12-09T18:54:18.560Z
2014-12-09T18:54:18.560Z
Brad Bell
<p>Is it possible to set a list of asset (images) based on their width? So i just want a list of images that are wider than 1000px for example... Without having to check in a for loop. So on the end of - craft.assets for example.</p>

<assets>
Asset array by width?
# Asset array by width?

(Asked by: username_0 on 2014-12-09)

Is it possible to set a list of asset (images) based on their width? So i just want a list of images that are wider than 1000px for example... Without having to check in a for loop. So on the end of - craft.assets for example.

**Tags:** assets

---

## 1 answers

### Answer by username_1 on 2014-12-09. Score: 3

If you want to check all assets across all sources, it'd be this:
{% set assets = craft.assets.width('> ' ~ 1000).find() %}

If you want all assets from a particular source, it'd be:
{% set assets = craft.assets.source('sourceHandle').width('> ' ~ 1004).find() %}

> **Comments:**
> **username_0**: Thats great thanks. Slowly unleashing the power or craft!  

---

