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.
First of all: great module, I prefer it over imagefield_crop.
Quesstion: would it be possible to use this module with the Media module? (preferably 2.x branch)
Comments
Comment #1
MatthijsI'm not familiar with the Media module, but I'll look into the possibilities.
Comment #2
jisuo CreditAttribution: jisuo commentedThis would be perfect.
The media module is really good for several reasons:
- You get a library of all the images on the site.
- You can add custom fields to the images (or other files) using file entity.
- I have made a plugin module for media module that allows me to attach images from our company CDN and they are added to the same gallery as normal images (even thought they are just urls like www.example.com/image.aspx?id=123).
- You can select videos (local and youtube, etc) in the same window
What it is lacking right now is something like Manual crop, where you can do a resize/scale/crop per instance.
Hopefully you'll look into this. :)
Comment #3
bforchhammer CreditAttribution: bforchhammer commentedYeah, integration with the media 2.x would be cool!
A simple "crop this image" button on the node form for files uploaded/selected by the media module would be a good start. The imagecrop module does that via
#after_build
handlers onmanaged_file
andmedia
form elements (see imagecrop.module#l283)...Comment #4
MatthijsThanks for the suggestions, this is my next issue once #1217550: Inline Crop is finally fixed.
Comment #5
MatthijsFinally in progress :-)
Comment #6
cinseattle CreditAttribution: cinseattle commentedHey Matthijs, great module! Just curious of the progress on Media module integration.
Comment #7
MatthijsHi cinseattle (and others),
I just pushed some changes to the 7.x-1.x branch. It's now possible to crop images on the file edit page, is there anything else you would like?
To make this possible (without copy/past code) I had to do some changes to to the widget, it seems to work fine, but if you should have any issues please let me know. Also be aware, when editing a file the widget specific settings are not loaded, so required crop selections can be removed this way!
Comment #8
MatthijsAlso see #1491604: Support for the "Media file selector" widget
Comment #9
bryancasler CreditAttribution: bryancasler commentedRequest: Show crop area by default without clicking on the image
REF: #1446572: Show crop area by default without clicking on the image
Comment #10
bryancasler CreditAttribution: bryancasler commentedJoin the conversation about consolidating media cropping efforts.
#1491508: A call for consolidating efforts. The path to a media integrated D7 cropping module.
Comment #11
MatthijsI'm marking this issue as fixed, please set back to active if you have additional Media integration requests.
Comment #13
Wolfgang Reszel CreditAttribution: Wolfgang Reszel commentedIs it possible to get the thumbnails instead of the drop down list? It would be nice to have similar options like for the normal widget.
Comment #14
MatthijsI'm currently in progress of dropping the custom widget and injecting the form elements in the default image/media/... widgets, see #1621712: Migrate from the custom to the default image widget for more info. It would be great if you open a new issue for this, then I'll look into the possibilities when that other issue has been completed.
Thanks!