File upload and check width and height of the picture


#1

i have an file upload in my rails app and i’m saving the picture in the
filesystem.
i need to validate if the uploaded picture have a certain width and
height.

how can i do this

thank you very much


#2

RMajick is the way to go

hannes stockner wrote:

i have an file upload in my rails app and i’m saving the picture in the
filesystem.
i need to validate if the uploaded picture have a certain width and
height.

how can i do this

thank you very much


#3

Yes - you won’t need to install the base applications either

hannes stockner wrote:

it is also possible with tkimage?

Mick S. wrote:

RMajick is the way to go

hannes stockner wrote:

i have an file upload in my rails app and i’m saving the picture in the
filesystem.
i need to validate if the uploaded picture have a certain width and
height.

how can i do this

thank you very much


#4

it is also possible with tkimage?

Mick S. wrote:

RMajick is the way to go

hannes stockner wrote:

i have an file upload in my rails app and i’m saving the picture in the
filesystem.
i need to validate if the uploaded picture have a certain width and
height.

how can i do this

thank you very much