This appears to be a bug, though I suppose it might be a support issue. Here's the state of things:
- Testing Vimeo default support using oEmbed core.
- Add an video (http://vimeo.com/18150336) using TinyMCE for WYSIWYG.
- Select the 'small' format for insertion.
The following code is inserted in the body field.
[[{"type":"media","view_mode":"media_small","fid":"2","attributes":{"alt":"","class":"media-image","title":"Wingsuit Basejumping - The Need 4 Speed: The Art of Flight","typeof":"foaf:Image"}}]]
Now, this displays fine on the View page, but in the edit window, the media_small presets do not seem to be applied (see attached). The small image above the large one is a traditional image file inserted using the same preset, and it is applying the image preset assigned to the 'small' display.
For the 'small' file display for images and video, I have the oEmbed Thumbnail dimensions set to 180x60, and the image dimensions set to use the thumbnail_square core preset. But in the WISIWYG the image appears at 1280x730 -- which seems to be the original size of the preview image provided by Vimeo.
I also tested with a YouTube video (http://www.youtube.com/watch?v=PKUDTPbDhnA) and the preview image appears at 480x360, which also appears to be the default size coming from YouTube.
Any insight here? Does this happen to others?
| Comment | File | Size | Author |
|---|---|---|---|
| Screen shot 2011-12-20 at 10.16.47 AM.png | 602.92 KB | agentrickard |
Comments
Comment #1
bryancasler commentedHopefully this will help un-cluster f*ck some of media's behavior
#1051090: Revamp file view modes: migrate media_small to teaser, media_large to full, media_preview to preview; deprecate link & original
Comment #2
Roensby commentedI don't think #1 addresses the issue
The problem is that when you insert media via oEmbed, the preview image in wysiwyg edit-mode takes the dimensions from the url, rather than apply the selected image style.
A patch to fix the problem can be found here: http://drupal.org/node/1678580
Comment #3
astonvictor commentedI'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks