Rails中检测SWF尺寸
Posted by devon on January 5th, 2009 filed in Rails应用安装:
1 2 | cd vendor/plugins svn export http://ruby-imagespec.googlecode.com/svn/trunk/ image_spec |
使用:
1 2 3 4 | image = ImageSpec::Dimensions.new('/path/to/your/file') image.width image.height |
例子:
1 2 3 4 5 6 | >> image = ImageSpec::Dimensions.new("#{RAILS_ROOT}/a.swf") => #<ImageSpec::Dimensions:0x2570d94 @height=670, @width=868> >> image.width => 868 >> image.height => 670 |
No related posts.
September 9th, 2010 at 5:39 PM
Buy:Cozaar.Ventolin.Amoxicillin.Female Cialis.Nymphomax.Female Pink Viagra.Lipitor.Wellbutrin SR.Lipothin.Acomplia.Seroquel.Prozac.Zetia.Zocor.Lasix.Buspar.Advair.Benicar.Aricept.SleepWell….
November 11th, 2010 at 8:08 PM
…
BUY FASHION. TOP BRANDS: GUCCI, DOLCE&GABBANA, BURBERRY, DIESEL, ICEBERG, ROBERTO CAVALLI, EMPORIO ARMANI, VERSACE…
December 20th, 2010 at 6:38 PM
Abilify@official.site” rel=”nofollow”>.…
Buywithout prescription…
December 21st, 2010 at 9:50 PM
buy pure acai berry…
Buyno prescription…
December 23rd, 2010 at 7:21 PM
Cialis UK…
Buygeneric meds…
December 24th, 2010 at 7:09 PM
Abana…
Buywithout prescription…
December 30th, 2010 at 12:05 AM
aloe@vera.gel.indicatii” rel=”nofollow”>……
Buygeneric drugs…
January 1st, 2011 at 9:14 AM
Aricept@official.site” rel=”nofollow”>.…
Buynow…
January 2nd, 2011 at 8:40 AM
Cozaar@official.site” rel=”nofollow”>..…
Buynow it…
January 5th, 2011 at 9:53 PM
< a href=”http://my.gardenguides.com/members/buy-Cialis? buy@Cialis.now…
Buydrugs without prescription…
January 6th, 2011 at 6:22 PM
cheap@Viagra.now” rel=”nofollow”>……
Buygeneric pills…
January 21st, 2011 at 11:39 PM
is@sun.pharmaceuticals.depakote.good.quality” rel=”nofollow”>.…
Buyno prescription…
February 6th, 2011 at 2:19 PM
Voltaren…
Buygeneric drugs…
February 7th, 2011 at 9:58 AM
Yaz…
Buywithout prescription…
February 7th, 2011 at 10:28 PM
Yaz…
Buywithout prescription…
March 3rd, 2011 at 7:18 PM
leg swelling lasix…
Buyno prescription…
March 4th, 2011 at 12:10 PM
yaz plan b…
Buydrugs without prescription…
March 4th, 2011 at 6:26 PM
is there a precition face cream that’s better than ketoconazole…
Buydrugs without prescription…
March 8th, 2011 at 4:32 PM
risperdal and luvox loss of libido…
Buydrugs without prescription…
March 9th, 2011 at 12:15 PM
Purim…
Buyit now…
March 10th, 2011 at 5:57 PM
rogaine for thicker eyebrows…
Buynow…
March 10th, 2011 at 8:00 PM
risperdal and carbatrol interactions…
Buygeneric pills…
March 10th, 2011 at 10:07 PM
Parlodel…
Buydrugs without prescription…
March 29th, 2011 at 12:46 AM
Pyrantel@Pamoate.now” rel=”nofollow”>..…
Buygeneric pills…
March 31st, 2011 at 6:18 AM
Purim@Purim.Purim” rel=”nofollow”>..…
Buywithout prescription…
March 31st, 2011 at 11:47 PM
Prozac@Prozac.Prozac” rel=”nofollow”>……
Buyno prescription…
April 1st, 2011 at 11:51 PM
buy@human.growth.hormone.product” rel=”nofollow”>……
Buygeneric drugs…
April 2nd, 2011 at 10:49 AM
early@childhood.purim.crafts” rel=”nofollow”>.…
Buygeneric drugs…
April 3rd, 2011 at 10:54 PM
.…
Buywithout prescription…
April 3rd, 2011 at 11:04 PM
when@will.i.ovulate.after.using.clomid” rel=”nofollow”>.…
Buyno prescription…
April 4th, 2011 at 5:59 AM
.…
Buyit now…
April 5th, 2011 at 12:15 AM
can@you.take.vicodin.with.prednisolone” rel=”nofollow”>.…
Buynow…
April 5th, 2011 at 6:51 AM
maximum@dosage.for.pristiq” rel=”nofollow”>……
Buyit now…
April 5th, 2011 at 8:31 AM
is@prometrium.and.blood.clots” rel=”nofollow”>..…
Buywithout prescription…
April 5th, 2011 at 10:01 AM
cutting@proscar.tablets” rel=”nofollow”>.…
Buygeneric pills…
April 5th, 2011 at 5:57 PM
buy@online.amoxicillin” rel=”nofollow”>.…
Buywithout prescription…
April 5th, 2011 at 8:23 PM
savlon@antiseptic.cream.canada” rel=”nofollow”>……
Buygeneric drugs…
April 5th, 2011 at 10:29 PM
cymbalta@and.elavil.interaction” rel=”nofollow”>.…
Buygeneric pills…
April 6th, 2011 at 2:05 AM
neurontin@dyskinesia.tardive.dystonia” rel=”nofollow”>.…
Buygeneric drugs…
April 6th, 2011 at 3:37 AM
how@well.does.nexium.cure.barretts.esophagus” rel=”nofollow”>.…
Buygeneric drugs…
April 6th, 2011 at 8:25 AM
changing@from.paxil.to.paxil.cr” rel=”nofollow”>.…
Buyno prescription…
April 6th, 2011 at 9:24 AM
prilosec@and.pepcid.and.carafate.for.dog” rel=”nofollow”>.…
Buywithout prescription…
April 6th, 2011 at 11:34 AM
plan@b.skateboards.at.target” rel=”nofollow”>.…
Buywithout prescription…
April 6th, 2011 at 8:03 PM
side@effectsof.flovent” rel=”nofollow”>..…
Buywithout prescription…
April 7th, 2011 at 10:14 AM
bachus@and.schanker.accutane” rel=”nofollow”>..…
Buygeneric drugs…