krafthaus / bauhaus

Laravel 4 Admin Generator
http://bauhaus.krafthaus.nl/
GNU General Public License v2.0
1 stars 0 forks source link

Image Preview on Edit page #33

Open crofton77 opened 9 years ago

crofton77 commented 9 years ago

How would I add a preview of the current image field on the edit. Currently only gives me upload field for new image.

Also can there be a way to customise the output in the list view to show the image?

jspekken commented 9 years ago

I'm currently working on that. I'll keep you updated

crofton77 commented 9 years ago

Also is it possible to store the image name without the path in the database?

As I have replace the path with the URL to display and this causes a issue when I move to live site as base_path is different.

vins13pattar commented 9 years ago

How to crop images to multiple sizes on upload?

sizes(array('events' => ['250', '160']));

Am I doing it right?

vins13pattar commented 9 years ago

@hrtrulz did you get any work around to store only image name to DB?

blackfyre commented 9 years ago
$mapper->image('image')->sizes([
            [200,200,'fit','smallImage'],
            [300,200,'resizeCanvas','bigImage'],
        ])->location('imagesFolder');