Displaying 3 results from an estimated 3 matches for "320x320".
Did you mean:
320,320
2006 May 19
9
Resize uploaded image file without creating temp file?
Hi,
I need to take a single uploaded image file and save three resized
versions of it, a thumbnail, normal and large version. I was planning on
doing this in my model by having an array of geometry strings and looping
through them, each time saving a new image object resized to the correct
geometry. I know that file column does similar stuff, but I would prefer
to have a separate database row
2003 Jul 26
0
R benchmark, moble Pentium III, 1.13 GHs
...------------------------------------------
> Trimmed geom. mean (2 extremes eliminated):
>2.06825841067831
>
> II. Matrix functions
> --------------------
>FFT over 800,000 random values______________________ (sec):
>1.61666666666666
>Eigenvalues of a 320x320 random matrix______________ (sec):
>1.20333333333333
>Error in eval(expr, envir, enclos) : couldn't find function
>"det.Matrix"
>Timing stopped at: 0 0 0 NA NA
>>
>
>
>
>=====
>Jason G. Liao, Ph.D.
>Division of Biometrics
>University of Medic...
2006 May 30
1
Can''t read from file field second time around
...agick::Image.from_blob(self.image).first
img.format = "JPG"
case self.image_type
when "thumb"
img.strip!.change_geometry("120x120!") { |cols, rows, img|
img.resize!(cols, rows) }
when "med"
img.strip!.change_geometry("320x320>") { |cols, rows, img|
img.resize!(cols, rows) }
when "lg"
img.strip!.change_geometry("640x480>") { |cols, rows, img|
img.resize!(cols, rows) }
else
raise "Unknown image type ''#{self.image_type}''"
end
se...