Comments (2)
This issue has been labeled as a bug since it was created using the 🚨 Bug Report Template.
Hi there, thank you so much for the report!
Following our Maintenance Process, we will review your bug report and get back to you next Wednesday. To ensure a smooth review of your issue and avoid unnecessary delays, please make sure your issue includes the following:
- Information about your environment and packages you use (Node.js version, package names and their versions, etc.)
Feel free to attach a copy of yourpackage.json
file. - Any troubleshooting steps you already went through
- A minimal reproduction of the issue, and/or instructions on how to reproduce it
If you have identified the cause of the bug described in your report and know how to fix it, you're more than welcome to open a pull request addressing it. Check out our quick start guide for a simple contribution process.
If you think your issue is a question (not a bug) and would like quicker support, please close this issue and forward it to an appropriate section on our community forum: https://community.prismic.io
- The Prismic Open-Source Team
from prismic-helpers.
Hey there, thank you so much for contributing. I'm sorry we failed to get back to you in a timely manner.
I tried reproducing without success, those tests pass as expected (committed version: 5ee387a /CI results: https://github.com/prismicio/prismic-helpers/actions/runs/5465804619/jobs/9949788226):
expect(
asImageSrc(field, {
w: 250,
h: 250,
q: 75,
fm: "webp",
fit: "crop",
}),
).toBe(`${field.url}&w=250&h=250&q=75&fm=webp&fit=crop`);
expect(
asImageSrc(field, {
width: 250,
height: 250,
q: 75,
fm: "webp",
fit: "crop",
}),
).toBe(`${field.url}&width=250&height=250&q=75&fm=webp&fit=crop`);
Equivalent images appear to be rendered as expected:
width
/height
: https://images.prismic.io/prismicio-docs-v3/72606106-11e9-4da2-8dd1-14f779eda024_Sign-up+form+slice.png?auto=compress%2Cformat&rect=0%2C0%2C1246%2C707&width=250&height=250&q=75&fm=webp&fit=cropw
/h
: https://images.prismic.io/prismicio-docs-v3/72606106-11e9-4da2-8dd1-14f779eda024_Sign-up+form+slice.png?auto=compress%2Cformat&rect=0%2C0%2C1246%2C707&w=250&h=250&q=75&fm=webp&fit=crop
I'm confused if I got your issue correctly, maybe this was a regression back then on Imgix's end? Well let me know, I'm closing it for now but happy to reopen~
from prismic-helpers.
Related Issues (20)
- Provide HTML Serializer children as string HOT 5
- HTML Serializer object syntax HOT 1
- [bug] `get()` doesn't accept single predicate HOT 2
- feat: provide `defineHTMLFunctionSerializer` and `defineHTMLMapSerializer` helpers HOT 6
- V2 Incompatible with gatsby-source-prismic? HOT 2
- `isFilled` helper HOT 2
- Support nullish inputs for `isFilled` helpers HOT 3
- RFC: Provide image URL helpers for Imgix's URL API HOT 10
- Create a helper to transform html code in RichText object HOT 1
- `isFilled.image` is not fully compatible with `ImageField` type HOT 3
- Create an `asRepositoryName()` helper HOT 3
- `isFilled.image` does not work with `ImageField` out of the box HOT 2
- utility or cli to extract response type definition from prismic custom types HOT 3
- Type error: '?' expected. HOT 8
- Error: Type 'P_2' cannot be used to index type 'FilledImageFieldImage & Record<ThumbnailNames extends string ? Exclude<ThumbnailNames, "url" | "dimensions" | "alt" | "copyright"> : never, FilledImageFieldImage>' HOT 5
- asHTML renders hyperlinks with undefined target HOT 3
- v2.3.1 broke asHTML serializer api (bug or feature 🤷) HOT 2
- Nuxtjs 2 using `prismicH.Element` return error `need an appropriate loader` HOT 4
- .asHtml not recognized in prismicH.asHtml (using Vite, Vue 3 and Nuxt 3) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prismic-helpers.