$image = Image::Magick->new; $url = "$Variable1/$Variable2/Filename.jpg"; $image->Read($url);