Open colindresj opened 11 years ago
Seems to be a problem with generating the appropriate image versions. The following only uploads the original, 'logo' version and the two auto-generated thumbnails (basically missing out on the retina 'logo@2x'):
<?php $content = array( 'about' => array( 'type' => 'fieldset', 'title' => 'About', 'description' => 'Edit the about section.', 'elements' => array( 'logo' => array( 'type' => 'image', 'label' => 'Logo', 'versions' => array( 'logo' => array( 'width' => 200, 'height' => 200 ), 'logo@2x' => array( 'width' => 400, 'height' => 400 ) ) ), 'title' => array( 'type' => 'text', 'label' => 'Title' ), 'text' => array( 'type' => 'wysiwyg', 'label' => 'Text' ) ) ) );
Is this a custom template you're developing?
Yep, it's for a template I'm working on.
Seems to be a problem with generating the appropriate image versions. The following only uploads the original, 'logo' version and the two auto-generated thumbnails (basically missing out on the retina 'logo@2x'):