Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using Media.module 7.x-2.0-unstable7
Adding an image via the "add media" button lets my browse for an image and the select a display format.
"default" adds a small image icon and the filename linked to the actual file
"teaser" adds the image at 220px width
"preview" adds the image as a 180px x 180px square
None of these is any use if I want to display an image at its original size which might be 800px x 600px.
Am I missing something?
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedOk, file extension was not recognized because it was UPPER CASE! Lower case extensions (.jpg vs .JPG) ARE actually displayed in their original size.
So I guess this module works as designed.
But given that some programs like Photoshop like saving images is upper case maybe media.module should automatically accept lower and upper case? It seems dedudant to enter all file types in either case in the list of valid extensions.
Comment #2
kiwimind CreditAttribution: kiwimind commentedI'm facing the same issue, although I still can't get my image to display full-sized. What did you do to get it showing? My image has a lowercase extension.
Comment #3
nibo CreditAttribution: nibo commentedActually this has nothing to do with the up- or lowercase file extension.
To enable an image to be displayed it its original size for the "Default" display, you have to go to your file types settings (for Image located at admin/structure/file-types/manage/image/file-display). Then in the Default tab you should enable the "Image" display and choose the image style you want, in this case None (original image).
Comment #4
kiwimind CreditAttribution: kiwimind commentedThank you very much for the pointer. I presume that this is a new feature with media 2.x as I don't remember playing with these settings before.
Comment #5
Devin Carlson CreditAttribution: Devin Carlson commentedThis is fixed per #4.