T
T
twixoff2014-06-25 20:20:17
Yii
twixoff, 2014-06-25 20:20:17

Yii image upload + size validation + preview?

Yii gurus tell me how to make a beautiful download of files with previews and size checks. For example, you need to upload a picture with dimensions exactly 100 * 700, or so that it is proportional - 1: 7.
The solution currently used is www.yiiframework.com/extension/image-attachment , but it doesn't allow you to check dimensions.
There are also separate validators for image sizes on the network.
Question - how to connect it or can anyone know ready-made solutions?
I will be very grateful :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vit, 2014-06-25
@fornit1917

Why do you need any special solutions, install php5-imagick and check the image dimensions with just a couple of lines of code.
In general, it seems to me that in modern browsers it is possible to check the sizes on the client even before sending to the server (although I’m not 100 percent sure, I haven’t done this myself). It's just that if it's possible, it would be much cooler.

A
Alexander Borisovich, 2014-06-25
@Alexufo

plupload - recently made like an extension even to Yii.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question