Drupal: Keep EXIF orientation and allow manual cropping of images

Wow, this is more troublesome than expected.

Goal: Let users upload images straight from a camera and manually select an area of the image that should be cropped.

Issue: nearly all modern cameras use EXIF information to tell an images orientation. Drupal image actions ignore this information and all images in landscape format resulting in flipped portrait images. Imagecache Actions module provides an action to rotate images based on EXIF data. But: this doesn't work if the image was resized to the maximum dimensions straight after the upload. And: it doesn't play nice with most image cropping modules.

I've been fighting this issue for some hours now and have something that seems to work for me. It's not extensively tested yet, though. Here's what I came up with:

Modules:

Tags: 

Hover Intent for CSS-only Dropdown Menus

Looking for a way to improve on my pure CSS dropdown menus I found an article by Chris Poteet where he shared his thoughts simulating an hover intent effect by using CSS transitions. The snippet had a big drawback, though: anything that is under the dropdown menu, even when it's not dropped down, cannot be focused anymore. The solution is to simply not trigger the dropdowns opacity property but it's visibilty. I forked Chris' snippet on Codepen with my little change: http://codepen.io/klickreflex/pen/aAbyz

Drupal Base Theme Mothership breaks Contextual Links

Simple CSS solution. Set the trigger to display: block;:

// Contextual links
.contextual-links-region:hover a.contextual-links-trigger {
  display: block;
 }

Instead of patching mothership as it's suggested in the source link, I'd recommend doing this in your own subtheme. As soon as mothership-7.x-3.0 gets a stable release it shouldn't be needed anymore as it has been committed to dev already.

Source: https://www.drupal.org/node/1677374

Drupal Module Comparison: Publish Button vs Safe Draft

To publish and unpublish content in Drupal you ususually have to tick or untick the Published checkbox before hitting the Save button. Sparing your users a click is alway a good idea, so why not considering a module that simplifies the action of publishing and unpublishing content.

Please welcome Publish Button and Safe Draft.

Both modules will simply add button actions to your nodes to publish/unpublish content instead of ticking that clumsy checkbox.

Here's why I opted for Publish Button over Safe Draft:

Tags: 

Drupal User Registration and Login with Email instead of Username

Drupal's default registration process is more complicated than it should be. To simplify the process I like my users to sign up and log in with only their email address and password.

There are various ways to deal with that issue, with Login Toboggan being one of the most popular ones. However, I rarely need all the other stuff that comes with this module and I prefer small modules that focus on a single task. Besides, Login Toboggan only allows to login with an email address as an alternative to the username, it doesn't remove the need to create a username in the first place.

So what I found best for my needs is a combination of the Email Registration module and a tiny custom module.

Pages