Permalink
Browse files

Rename test files, add in portrait test image

  • Loading branch information...
1 parent 2478ca0 commit 4406933102102d7a7721c1bafd9648023f19a9b0 @evdb evdb committed Jul 6, 2012
View
6 examples/app.js
@@ -21,13 +21,13 @@ app.configure(function(){
app.get('/', function(req, res){
- res.render('index.jade');
+ res.render('index.jade');
});
app.get('/no_suffix_jpg', function (req, res) {
- res.sendfile(__dirname + '/public/test.jpg');
+ res.sendfile(__dirname + '/public/landscape.jpg');
});
app.listen(3000);
-console.log( "Example server started on: http://localhost:3000" );
+console.log( "Example server started on: http://localhost:3000" );
View
0 examples/public/test.jpg → examples/public/landscape.jpg
File renamed without changes
View
BIN examples/public/portrait.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
21 examples/views/index.jade
@@ -1,32 +1,39 @@
h2 Original Image
-img(src="/images/test.jpg")
+img(src="/images/landscape.jpg")
h2 Resize
-img(src="/proxy/?url=http%3A%2F%2Flocalhost%3A3000%2Fimages%2Ftest.jpg&resize=1&height=120")
+img(src="/proxy/?url=/images/landscape.jpg&resize=1&height=120", title="h:120")
+img(src="/proxy/?url=/images/portrait.jpg&resize=1&height=120", title="h:120")
+
+img(src="/proxy/?url=/images/landscape.jpg&resize=1&width=120", title="w:120")
+img(src="/proxy/?url=/images/portrait.jpg&resize=1&width=120", title="w:120")
+
+img(src="/proxy/?url=/images/landscape.jpg&resize=1&height=100&width=100", title="h:100, w:100")
+img(src="/proxy/?url=/images/portrait.jpg&resize=1&height=100&width=100", title="h:100, w:100")
h2 Grayscale
-img(src="/proxy/?url=http%3A%2F%2Flocalhost%3A3000%2Fimages%2Ftest.jpg&grayscale=1")
+img(src="/proxy/?url=/images/landscape.jpg&grayscale=1")
h2 PNG Conversion
-img(src="/proxy/?url=http%3A%2F%2Flocalhost%3A3000%2Fimages%2Ftest.jpg&format=png")
+img(src="/proxy/?url=/images/landscape.jpg&format=png")
h2 Resize + Grayscale + GIF Conversion
-img(src="/proxy/?url=http%3A%2F%2Flocalhost%3A3000%2Fimages%2Ftest.jpg&format=gif&resize=1&height=210&grayscale=1")
+img(src="/proxy/?url=/images/landscape.jpg&format=gif&resize=1&height=210&grayscale=1")
h2 Image sent without suffix
-img(src="/proxy/?url=http%3A%2F%2Flocalhost%3A3000%2Fno_suffix_jpg&resize=1&height=120")
+img(src="/proxy/?url=/no_suffix_jpg&resize=1&height=120")
h2 Image that does not exist
-img(src="/proxy/?url=http%3A%2F%2Flocalhost%3A3000%2Fdoes_not_exist&resize=1&height=120")
+img(src="/proxy/?url=/does_not_exist&resize=1&height=120")

0 comments on commit 4406933

Please sign in to comment.