Closed jesuismaxime closed 3 years ago
Had to explicitly specify the 'mode' within the query to get the url as wanted, example:
{
asset(id: 458) {
uid
...on AssetInterface {
title
width
height
square: url @ transform (mode: "crop", width: 300, height: 300)
}
}
}
Having a default/fallback mode
value as the core Image Transforms component would be great!
Actually, image transforms do default to crop
, so not sure what happened there. Is this on a public environment where it's possible to get access?
Description
It may be more of a question, but image transforms dont seem to be accessible with the plugin (I try only with GraphQL, and yes my volume is available in my Public Schema).
Steps to reproduce
I tested the query with a local asset id (not handle by GCS) and it works well. Do I need to specify some permissions in GCS to make Craft able to create new sub-folders?
Edit/Update:
I try directly in my index twig template, and with that I was able to have some relevant logs (I add no error logs with the GraphQL query):
I switch back to 'Fine-grained'* and it works fine with Twig, but still have a
null
with GQL.*It may be a nice detail to add to the plugin documentation!
Additional info
Plugins & versions: Google Cloud Storage 1.4.0