2amigos / yii2-file-upload-widget

BlueImp File Upload Widget for Yii2
Other
251 stars 140 forks source link

How to change size for thumbnail #144

Closed alejofonseca closed 5 years ago

alejofonseca commented 6 years ago

Hi @tonydspaniard,

A quick question: how to change the thumbnail size? It currently gives me something like the attached image. ibbux

Thank you.

ivan-cc commented 6 years ago

Use preview* https://github.com/blueimp/jQuery-File-Upload/wiki/Options#previewmaxheight

Example:

//...
'clientOptions' => [
//...
        'previewMaxWidth' => 100,
    ],
//...
Tolembek commented 6 years ago

How to upload the size of the picture (before updating the page)?

Tolembek commented 6 years ago

'previewMaxWidth' => 100 does not work

Tolembek commented 6 years ago

help me

alejofonseca commented 6 years ago

I am sorry mate, I used a different system for uploads. This one does not have proper documentation, so... it sacks.

tonydspaniard commented 5 years ago

@alejofonseca @Tolembek I would simply use CSS: https://github.com/2amigos/yii2-file-upload-widget/blob/master/src/views/upload.php#L6. The views have classes that you can manipulate with CSS.

@alejofonseca instead of complaining about not having proper documentation. Why don't you help us to improve it by providing a PR? What really SUCKS, apart of your english skills, is that you don't have any empathy at all for those who give away their precious time to help people by submitting libraries. People like you make open source work a terrible place to be and one of the reasons I moved away for so long.