A developer is experiencing an issue where the image_picker setting type pulls images from the assets folder instead of the files/uploads folder, regardless of which Liquid filter is applied (img_url or file_img_url). The code attempts to use an uploaded image as a CSS background image.
Attempted Solutions:
Adding parameters to the img_url filter (e.g., "master" or specific dimensions like "1290x")
Using inline styles with the style attribute instead of external CSS
Current Status:
The original poster tried the suggested parameter approach without success
Another user encountered the same problem and is also seeking a solution
The discussion remains unresolved with no confirmed fix
Technical Context:
The issue involves Shopify’s Liquid templating and the image_picker schema setting, which appears to default to the assets directory rather than respecting uploaded files when rendered as background images.
Summarized with AI on November 22.
AI used: claude-sonnet-4-5-20250929.
I am trying to pull pics thorugh image picker, displaying as background image. I have put the code below to pull the pics from “files”, but no matter what filter I use(img_url, file_img_url), it keeps trying to pull from assets which lead to have a no image there. I put the code below for you to understand:
I’m trying to figure this out now too. Did you ever find the solution? I’ve been looking everywhere. Who would have thought just trying to display a background image using img_picker in a block would be so tricky.