Comments (6)
Seems like the image tag is not rendered even though it's visible in the editor.
from builder.
Here is how it looks inside the editor. I can also verify that there are no img
or amp-img
tags in the document for some reason.
from builder.
@steve8708, this should probably reopened. Here's an example img
tag:
<img decoding="async" sizes="(max-width: 638px) 95vw, (max-width: 998px) 97vw, 54vw" src="https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fda62cf9c04b04780b4cf5ee4103e8f85?width=966" srcset="https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fda62cf9c04b04780b4cf5ee4103e8f85?width=100 100w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fda62cf9c04b04780b4cf5ee4103e8f85?width=200 200w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fda62cf9c04b04780b4cf5ee4103e8f85?width=400 400w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fda62cf9c04b04780b4cf5ee4103e8f85?width=800 800w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fda62cf9c04b04780b4cf5ee4103e8f85?width=1200 1200w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fda62cf9c04b04780b4cf5ee4103e8f85?width=1600 1600w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fda62cf9c04b04780b4cf5ee4103e8f85?width=2000 2000w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fda62cf9c04b04780b4cf5ee4103e8f85?width=966, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fda62cf9c04b04780b4cf5ee4103e8f85?width=606 606w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fda62cf9c04b04780b4cf5ee4103e8f85?width=966 966w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fda62cf9c04b04780b4cf5ee4103e8f85?width=749 749w" class="i-amphtml-fill-content i-amphtml-replaced-content">
The problem here seems to be the CDN which doesn't serve the images with the correct size even though the width
parameter is set.
from builder.
Hey @kevva - which images look wrong to you? I'm clicking through the various links and seeing the right sizes (e.g. width=100 gives me a 100px wide image https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fda62cf9c04b04780b4cf5ee4103e8f85?width=100)
Note thought that width is considered a max width. We won't increase an images size since that would lead to an unnecessarily large and pixelated image, so the only known time that the CDN will return a differently size image is if the width param is larger than the originally uploaded image's width
from builder.
@steve8708, sorry, my mistake. It must've been something wrong with my eyes. However, the issue still remains and it looks like some of the images are missing a width in their srcset
, eg:
<img decoding="async" sizes="(max-width: 638px) 95vw, (max-width: 998px) 97vw, 27vw" src="https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fa1ad2666656f402c8ad345feedde0e85?width=966" srcset="https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fa1ad2666656f402c8ad345feedde0e85?width=100 100w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fa1ad2666656f402c8ad345feedde0e85?width=200 200w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fa1ad2666656f402c8ad345feedde0e85?width=400 400w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fa1ad2666656f402c8ad345feedde0e85?width=800 800w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fa1ad2666656f402c8ad345feedde0e85?width=1200 1200w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fa1ad2666656f402c8ad345feedde0e85?width=1600 1600w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fa1ad2666656f402c8ad345feedde0e85?width=2000 2000w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fa1ad2666656f402c8ad345feedde0e85?width=966, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fa1ad2666656f402c8ad345feedde0e85?width=606 606w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fa1ad2666656f402c8ad345feedde0e85?width=966 966w, https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fa1ad2666656f402c8ad345feedde0e85?width=366 366w" class="i-amphtml-fill-content i-amphtml-replaced-content">
Notice that there is one image (https://cdn.builder.io/api/v1/image/assets%2F24f5a903f204406989735cec9b19a2ae%2Fa1ad2666656f402c8ad345feedde0e85?width=966) that doesn't have a size. I can see it on multiple images, but not all for some reason.
from builder.
Ah I see, maybe it doesn't like that the default URL is the same size as one of the generated URLs in srcset too - assigning to @teleaziz to investigate futher
from builder.
Related Issues (20)
- Error: Cannot find module 'isolated-vm' HOT 7
- TypeError: The specifier “@builder.io/sdk-vue” was a bare specifier, but was not remapped to anything. HOT 8
- BlocksWrapper component adds unnecessary div & styling creating CSS issues
- Upgrading `@builder.io/sdk` to 2.2.1 breaks build HOT 1
- Upgrade isolated-vm version to latest version HOT 4
- `SIGSEGV` panic on Node.js 20 with `@builder.io/react` HOT 2
- Key option is not correctly forwarded in builder.getAll
- Builder SDK Vue breaks after 0.12.4 (properties of null (reading 'isCE') HOT 2
- defineProps macro in vue 3 with TS (custom components) HOT 1
- `@builder.io/sdk-react-native` fails to render due to rendering a `div` in `DynamicRenderer` HOT 7
- How to give just simple array as prop HOT 2
- `$elemMatch` operator does not work in the new SDK HOT 5
- Types broke in Vue SDK after 0.12.8 HOT 3
- Is it possible to have dynamically created pages? HOT 1
- see image preview instead cloud icon HOT 2
- `npm run dev` error caused by `@builder.io/dev-tools`: package.json invalid path HOT 1
- sdk-react gen2 useContext HOT 7
- `npm run dev` "package.json invalid path" error caused by `@builder.io/dev-tools` HOT 3
- [Builder.io]: Failed code evaluation: Cannot read properties of undefined (reading 'Isolate') HOT 13
- Required rule doesn't work on field of type "file" if it's nested in object
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 builder.