Comments (5)
@amezick
we can make configurable I would take it with @naveenpras
from cloudinary_sfcc_pagedesigner.
Based on discussions, we'll attempt to expose this through code initially. We can think about exposing this through the UI later on.
from cloudinary_sfcc_pagedesigner.
That works for me.
from cloudinary_sfcc_pagedesigner.
Angus needs to set the upper limit for the breakpoint, e.g. say that we need to set the biggest breakpoint.
from cloudinary_sfcc_pagedesigner.
The example is:
Pick a image at 400x400
The srcsets start at 2000 px and so the image is scaled up.
Check
function getBreackpoints(publicId) {
var body = {
timestamp: (Date.now() / 1000).toFixed(),
public_id: publicId,
type: 'upload',
responsive_breakpoints: [
{
bytes_step: 20000,
max_width: 1000,
max_images: 20,
min_width: 200
}]
};
body.signature = utils.addSignatureToBody(body);
body.responsive_breakpoints = utils.stringifyJson(body.responsive_breakpoints);
body.api_key = currentSite.getCustomPreferenceValue('CloudinaryPageDesignerAPIkey');
var r = utils.callService(body, 'image', 'explicit');
if (r.ok) {
var result = r.message;
return getBreackpointsFromResponse(result);
}
return [1280, 768, 375];
}
from cloudinary_sfcc_pagedesigner.
Related Issues (12)
- Responsive breakpoints get deleted when changes are made to the form. HOT 2
- The order of transformations applied to breakpoints needs to be adjusted. HOT 2
- Removing an image raises an exception HOT 5
- Named and custom transformation choices aren't remembers when I edit an image. HOT 1
- Add a list of the image transformations to the custom editor HOT 1
- Link Builder uses site name instead of site ID HOT 5
- Cartrdige name typo in Readme.md HOT 2
- Service configuration is missing in Readme.md
- Checkboxes not showing for Cloudinary Video Component in Firefox Browser HOT 2
- Responsive Srcset is only populated when debug code is on the page. HOT 2
- Update README.md to point to the documentation HOT 1
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 cloudinary_sfcc_pagedesigner.