Hello there,
Sorry about my non-useful issue title, but I honestly do not know what is going on. When viewing a page an error is logged along the lines of:
Effect image_style not found for media_gallery_large display formatter style of the FileStyles class.
I'm not sure why this is happening, possibly something I've done in a haze of late night deadline meeting. The error is reported for all the nodes present in the gallery. I've attached some screenshots to illustrate the effect this has on the ui. You will notice how the thumbnails are no longer cropped and re-sized and the youtube video that was previously there is not displaying at all, and throwing up an error in colorbox. I am using beta5 with the contributed colorbox patch and have also attached a screenshot of an issue with the size of the description area when using colorbox.
Any help would be greatly appreciated
Cheers
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | media_gallery-fix-default-preset-alteration-1175588-13.patch | 586 bytes | das-peter |
| #7 | block--media-gallery.jpg | 97.07 KB | sylvain lecoy |
| #6 | media_gallery.jpg | 121.96 KB | sylvain lecoy |
| #5 | Screenshot_3.jpg | 95.27 KB | mrpauldriver |
| Screenshot-Test Gallery 2011 | Funny Wonders Inc. - Mozilla Firefox.png | 687.6 KB | tr33m4n |
Comments
Comment #1
pazap47 commentedWish I could help since I have the same problem but no solution. Anybody with helpful ideas?
Comment #2
Sateqla commentedI had the same problem when I used Styles-module version 7.x-2.0-alpha6 or later (I tried with versions alpha7 and alpha8 too).
Then I installed styles module version 7.x-2.0-alpha5, which is mentioned in the Media Gallery module readme file as tested, and it worked! So, you might want to try installing alpha5 version of Styles module, at least it fixed the problem for me.
Seems that changes in later versions of Styles module are not fully compatible with this version of Media Gallery.
Comment #3
pazap47 commentedThank you so much it's what I thought, it's the cat who bites the tail effect with updates, but I do realize the hard work and effort that's being put into Drupal 7 by the community we just have to be patient.
Comment #4
camdarley commentedSame problem for me, i subscribe !
Comment #5
mrpauldriver commentedSimilar problem when linking to YouTube video.
Wide screen video are letterboxed (see screenshot). Yes this happened before but it was possible to resize and crop the thumbnails with image style. This does not appear to working at all.
Comment #6
sylvain lecoy commentedSame problem here. Subscribing
Comment #7
sylvain lecoy commentedSame for the media_gallery block.
Comment #8
SilviuChingaru commentedI think the problem is from media gallery thumbnail preset. In order to fix the problem use square_thumbnail instead of media_gallery_thumbnail preset in admin/config/media/file-styles/edit/media_gallery_thumbnail. It's work for me now.
If you don't have square_thumbnail preset in the list of presets create it (or a new one) at admin/config/media/image-styles with Scale and crop [your thumb dim in px]x[your thumb dim in px].
The problem is from media_gallery.module
But I don't have time for debug right now, I'll make some research later.
Comment #9
das-peter commentedI think I found the issue in the function
media_gallery_styles_default_presets_alter().It looks like something in the styles module has changed - earlier there was the key
image_style, but now it seems to beimageStyle.Unfortunately I can't provide a patch because atm. I'm not on my Dev-Environment, but luckily the necessary change is easy:
media_gallery_styles_default_presets_alter()(line 1449)'name' => 'image_style',with'name' => 'imageStyle',- save changes.Comment #10
keha3912 commentedhttp://drupal.org/files/issues/Screenshot_0_260.png - at me too most
The message #8 and #9 hasn't helped
das-peter - you can make a result screenshot?
Comment #11
das-peter commented@keha3912:
Could you try to reasign the preset
media_gallery_thumbnailto the filestyle here: admin/config/media/file-styles/edit/media_gallery_thumbnail ?This means
media_gallery_thumbnailto e.g.thumbnailand save.media_gallery_thumbnailand save.If you've installed the latest styles module and you've changed the code according to #9 it should work.
Comment #12
keha3912 commentedHas found where an error - admin/config/media/types/manage/image/display/media_gallery_collection_thumbnail - here it is chosen media_gallery_thumbnail
All thanks!
Comment #13
das-peter commentedAdded patch related to #9. I'm still not sure when the behaviour of styles changed - maybe we need a conditional alteration.
Comment #14
ischia commented#13 helped, thank you!
Comment #15
Carlos Miranda Levy commentedPatch #13 fixes it :-)
Thanks.
Comment #16
effulgentsia commentedThanks. Styles usage page still shows quite a few people using alpha5 (possibly because of this problem), so rather than breaking BC for them, I committed a variant of #13 that's compatible with both: http://drupalcode.org/project/media_gallery.git/commitdiff/7cb6108?hp=45...
Comment #17
bib_boy commentedSimilar issue for me in that my gallery images were set to 'File Style: media-gallery_thumbnail' in the image media type settings but all the images in the gallery were different sizes. It looked horrible.
But I can confirm even using styles module (version alpha8) that both solutions in #13 and the variant at #16 fix this issue!
many thanks.
Comment #18
Tuscan commentedSame bug my end. Media gallery beta 5, Styles Alpha 8.
Description:
The gallery thumbnail images are not cropping, causing the titles to get cut off and thumbnails to not inline correctly. Similar to the previous screenshots attached.