keystone
keystone copied to clipboard
Update cloudinaryimage.md
Link to transform params in type info. I found this while digging around the source after adding Cloudinary images to my project. I can add more copy around this subject and perhaps an example if that would be more useful.
⚠️ No Changeset found
Latest commit: 5eb4695a22a7bc83640ed6dc697829756e9b95f0
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 5eb4695a22a7bc83640ed6dc697829756e9b95f0:
| Sandbox | Source |
|---|---|
| @keystone-6/sandbox | Configuration |
Hi @jason-c-child, Thanks for the pull request. When https://github.com/keystonejs/keystone/pull/8816 is merged, could you extend the example to demonstrate how you used this feature?
I agree it is generally undocumented except by the generated GraphQL schema:
input CloudinaryImageFormat {
""" Rewrites the filename to be this pretty string. Do not include `/` or `.`
"""
prettyName: String
width: String
height: String
crop: String
aspect_ratio: String
gravity: String
zoom: String
x: String
y: String
format: String
fetch_format: String
quality: String
radius: String
angle: String
effect: String
opacity: String
border: String
background: String
overlay: String
underlay: String
default_image: String
delay: String
color: String
color_space: String
dpr: String
page: String
density: String
flags: String
transformation: String
}
type CloudinaryImage_File {
id: ID
filename: String
originalFilename: String
mimetype: String
encoding: String
publicUrl: String
publicUrlTransformed(transformation: CloudinaryImageFormat): String
}
@jason-c-child are you open to extending the example?
@jason-c-child are you open to extending the example?
Absolutely! I'll be getting to it this weekend if all goes well. Thank you!