V8: Media crop inside Grid
See original GitHub issueI’m in the middle of migrating an Umbraco 7 blog to Umbraco 8, and in V7 project i have created an new grid editor of the media editor which has a size set, like this 😃
{
"name": "Image",
"alias": "croppedMedia",
"view": "media",
"icon": "icon-picture",
"config": {
"size": {
"width": 700,
"height": 468
}
}
}
The would give me the URL like this,
/media/1005/image.jpgwidth=700&height=468¢er=0.601973684210526,0.470454545454545&mode=crop
Where in V8 i get this URL,
/media/rikf2vfz/image.jpg?width=700&height=468
So it does not parse the center or mode parameters which results in some strange images 😢 And the editor does not work properly, it stretches the preview image inside Umbraco
Bug summary
So the config section in an grid editor does get ignored and the preview image inside the editor looks either stretched or funky because of what i guess is the missing “mode”.
Specifics
I’m using Umbraco 8.0.0, and Chrome 72.0.3626.121 and have tested in other browsers aswell
Steps to reproduce
Insert this in the grid.editor.config.js file or in an package,
"config": {
"size": {
"width": 700,
"height": 468
}
}
Then try to use the editor in the grid
Expected result
I did expect a result like this,
Actual result
But i got this 😢
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Hmm, looks like a bug indeed!
Hiya @AndersBrohus,
Just wanted to let you know that we noticed that this issue got a bit stale and might not be relevant any more.
We will close this issue for now but we’re happy to open it up again if you think it’s still relevant (for example: it’s a feature request that’s not yet implemented, or it’s a bug that’s not yet been fixed).
To open it this issue up again, you can write
@umbrabot still relevant
in a new comment as the first line. It would be super helpful for us if on the next line you could let us know why you think it’s still relevant.For example:
This will reopen the issue in the next few hours.
Thanks, from your friendly Umbraco GitHub bot 🤖 🙂