Closed (duplicate)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2011 at 20:27 UTC
Updated:
11 Aug 2011 at 13:59 UTC
size limits and other settings like in FileField
file sizes, image sizes, etc
new functionality? merge something?
might be having a brain fart again, but we need this
Comments
Comment #1
philippejadin commentedDo I understand correctly that curently media field do not have file size limits implemented?
On a site I manage, I cannot choose the max file size for an audio field. File size is arbitrarly set at 32 mb. Any file bigger than that is rejected. At php level (and drupal file field), file size is limited to 300mb.
Should I revert to simple file field to be able to increase this limit, or did I miss something ?
I hope media will one day work as an extension to core file field (and inherit file field features) to avoid code duplication ;-)
Comment #2
bib_boy commentedI'm assuming LPCA means image dimension settings (or resolution) for the image size (not the File size - as Media does this). In the Image field you can limit the dimensions of an image on upload given as 'Maximum image resolution'. This means you can set a maximum width and height for all your images, thereby making pages load faster, and doing away with original images going off the screen.
So a request for a maximum (and/or minimum) image size resolution (width & height) as is available in the image field of the core ckk.
Perhaps this could be set under the Media Types->Image settings for a global approach or in the Media asset field in the content-type setup.
Comment #3
tommyk commentedI also have a need to be able to set limits on the dimensions for images uploaded to Media.
It seems to me like Drupal Gardens does this, but I can't quite figure out how it is working with all the settings I am able to view.
Maybe someone knows how to cobble together a custom module that would resize images to a specified resolution limits for all Media Images. I wouldn't care about a UI for such a temporary workaround.
Comment #4
idflood commentedHere are some initial observations:
edit: some more:
So, for uploaded files I could imagine something as simple as:
But how would it be possible to access this $settings from media_add_upload() ? If I understand correctly we need to first pass these settings to media_media_browser_plugin_view() and then to the forms. Is that right? Any other solution?
Comment #5
idflood commentedpossibly related or even duplicates:
Comment #6
dave reidCorrect this is a duplicate of #1223794: Widget does not respect settings in image_field_instance_settings_form (min/max resolution) - consolidating issues.