I have a problem with loading externel library in Sketchup
I want to know the orginal width and height of image. But i didn't find out in Sketchup API. So i download fastimage, a library can do it. (https://github.com/sdsykes/fastimage) . I installed it by using command:
gems install fastimage
This new gem is installed in: C:\Ruby186\lib\ruby\gems\1.8 .Then i require it in my script (by following the turorial in above link) :
require 'fastimage'
But i got the error: no such file to load -- fastimage
Then i found one solution in this link :http://sketchucation.com/forums/viewtopic.php?t=29412#p257058. Create a loadpath script ,and create a linking to external library. After creating this script, put them into plugin folder in Sketchup,and run Sketchup again. But i still get the error : No such file to load.
.Version of my ruby is 1.8.6, and when i type command : puts RUBY_VERSION in Sketchup ruby console. Its output is 1.8.6 (the same version as my ruby). I don't understand why it can not require new gem. Please help me, thanks you.