{"action":"opened","issue":{"url":"https://api.github.com/repos/thephpleague/glide/issues/133","repository_url":"https://api.github.com/repos/thephpleague/glide","labels_url":"https://api.github.com/repos/thephpleague/glide/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/thephpleague/glide/issues/133/comments","events_url":"https://api.github.com/repos/thephpleague/glide/issues/133/events","html_url":"https://github.com/thephpleague/glide/issues/133","id":152661706,"number":133,"title":"Example for dummies?","user":{"login":"paxperscientiam","id":7539871,"avatar_url":"https://avatars.githubusercontent.com/u/7539871?v=3","gravatar_id":"","url":"https://api.github.com/users/paxperscientiam","html_url":"https://github.com/paxperscientiam","followers_url":"https://api.github.com/users/paxperscientiam/followers","following_url":"https://api.github.com/users/paxperscientiam/following{/other_user}","gists_url":"https://api.github.com/users/paxperscientiam/gists{/gist_id}","starred_url":"https://api.github.com/users/paxperscientiam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paxperscientiam/subscriptions","organizations_url":"https://api.github.com/users/paxperscientiam/orgs","repos_url":"https://api.github.com/users/paxperscientiam/repos","events_url":"https://api.github.com/users/paxperscientiam/events{/privacy}","received_events_url":"https://api.github.com/users/paxperscientiam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-02T22:36:43Z","updated_at":"2016-05-02T22:36:43Z","closed_at":null,"body":"Hey there, I'm really digging the possibilities of glide, but I have no idea how to get it working.\r\n\r\nWould you mind lending a bit of assistance?\r\n\r\nMy main goal is to be able to use URL queries to retrieve a processed image. This is what I have so far for 'watermark.php':\r\n\r\n```PHP\r\n// for security\r\nuse League\\Glide\\Signatures\\SignatureFactory as SignatureFactory;\r\nuse League\\Glide\\Signatures\\SignatureException as SignatureException;\r\nuse League\\Glide\\Urls\\UrlBuilderFactory as UrlBuilderFactory;\r\n\r\n// for cacheing\r\nuse League\\Flysystem\\Adapter\\Local;\r\nuse League\\Flysystem\\Filesystem as Filesystem;\r\nuse League\\Glide\\ServerFactory as ServerFactory;\r\n\r\n//response\r\nuse League\\Glide\\Responses as Responses;\r\nuse League\\Flysystem\\FilesystemInterface as FSI;\r\n\r\n\r\n// local variables\r\n$imgPath = $install_path . $rel_path_to_image;\r\n$watermarkPath = $install_path . \"assets/img/watermark.png\";\r\n$cachePath = $install_path . \"cache\";\r\n\r\n\r\n$server = ServerFactory::create([\r\n    'source' =>   new Filesystem(new Local($install_path)),               // Source filesystem\r\n    'source_path_prefix' => \"assets/img/logos/\",     // Source filesystem path prefix\r\n    'cache' =>       new Filesystem(new Local($install_path)),            // Cache filesystem\r\n    'cache_path_prefix' =>  \"cache/league\",     // Cache filesystem path prefix\r\n    'group_cache_in_folders' =>  true, // Whether to group cached images in folders\r\n    'watermarks' =>    new Filesystem(new Local($install_path)),          // Watermarks filesystem\r\n    'watermarks_path_prefix' => \"assets/watermarks\",  // Watermarks filesystem path prefix\r\n    'driver' =>    'imagick'              // Image driver (gd or imagick)\r\n]);\r\n\r\n// Set using setter method\r\n$server->setPresets([\r\n    'small' => [\r\n        'w' => 200,\r\n        'h' => 200,\r\n        'fit' => 'crop',\r\n    ],\r\n    'medium' => [\r\n        'w' => 600,\r\n        'h' => 400,\r\n        'fit' => 'crop',\r\n    ]\r\n]);\r\n```\r\n\r\nI've tinkered with this for about two days without luck. Do I have to setup re-direct rules with .htaccess? Do my image links need to include \"watermark.php\" -- something like \"watermark.php?f=image.png&w=500&h=320\"?\r\n\r\nAnything you could help clarify would be much appreciated."}}