Leeflets / leeflets

Beautifully Simple Websites
128 stars 29 forks source link

Issue with generating image versions #100

Open colindresj opened 11 years ago

colindresj commented 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'
        )
    )
  )
);
jptksc commented 11 years ago

Is this a custom template you're developing?

colindresj commented 11 years ago

Yep, it's for a template I'm working on.