features/httpthumbnailer.feature in httpthumbnailer-0.0.14 vs features/httpthumbnailer.feature in httpthumbnailer-0.1.0
- old
+ new
@@ -1,8 +1,8 @@
Feature: Generating set of thumbnails with single PUT request
In order to generate a set of image thumbnails
- A user must PUT original image to URL in format
+ A user must PUT an image to URL in format
/thumbnail[/<thumbnail type>,<width>,<height>,<format>[,<option key>:<option value>]+]+
Background:
Given httpthumbnailer log is empty
Given httpthumbnailer server is running at http://localhost:3100/
@@ -210,6 +210,18 @@
And second part mime type will be image/png
And third part mime type will be image/png
Then first part will contain body smaller than second part
Then second part will contain body smaller than third part
And there will be no leaked images
+
+ Scenario: Hint on input image mime type - JPEG
+ Given test.jpg file content as request body
+ When I do PUT request http://localhost:3100/thumbnail/crop,16,16,PNG
+ Then response status will be 200
+ And X-Input-Image-Content-Type header will be image/jpeg
+
+ Scenario: Hint on input image mime type - PNG
+ Given test.png file content as request body
+ When I do PUT request http://localhost:3100/thumbnail/crop,16,16,PNG
+ Then response status will be 200
+ And X-Input-Image-Content-Type header will be image/png