Image styles are using the machine name of the style instead of the actual label. Attached is a patch to fix that issue.

Comments

nielsaers’s picture

Patch works

bskibinski’s picture

Tested and works.

malberts’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Status: Active » Needs review

This look simple enough and I haven't had any issues.

I suspect, but haven't tested, that if you use this patch with an older version of Drupal before image styles got labels it might give a PHP notice.

progpapa’s picture

StatusFileSize
new534 bytes

I haven't tested it with older versions of Drupal, but if there were PHP notices, this patch should fix those + I've added some sanitization, since image style names are user entered data.

AndyThornton’s picture

+1

Thanks for this fix, I applied the patch it and it works fine.

mkolar’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the fix.

Jej’s picture

Quite better, thanks!

  • Snater committed f40935e on 7.x-1.x authored by progpapa
    Issue #2170455 by progpapa, sambfries: Image Styles using machine name...
snater’s picture

Status: Reviewed & tested by the community » Needs review
snater’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.