Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

306 строки
22 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>Slim</title>
  7. <style>
  8. html {
  9. -webkit-font-smoothing: antialiased;
  10. background:#fff;
  11. color:#61564E;
  12. font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;
  13. font-size:1em;
  14. }
  15. html, body {
  16. margin:0;
  17. padding:0;
  18. }
  19. body {
  20. line-height:1.4;
  21. font-size:1.125rem;
  22. font-weight:300;
  23. }
  24. main {
  25. padding:2rem 2rem 4rem;
  26. max-width:40rem;
  27. margin:0 auto;
  28. }
  29. p {
  30. max-width:32rem;
  31. }
  32. em {
  33. font-style:normal;
  34. color:#312C28;
  35. background:#F2EFED;
  36. padding:.125em .25em;
  37. border-radius:.25em;
  38. }
  39. a {
  40. color:#175C54;
  41. }
  42. li {
  43. margin-bottom:.25em;
  44. }
  45. h1 {
  46. color:#3E3F45;
  47. }
  48. h2 {
  49. padding-top:1em;
  50. margin:0 0 .75em;
  51. font-weight:300;
  52. font-size:2em;
  53. color:#F9A1BC;
  54. }
  55. h3 {
  56. margin:2em 0 .75em;
  57. font-weight:300;
  58. font-size:1.5em;
  59. color:#2cb1a0;
  60. }
  61. code {
  62. color:#68581d;
  63. background:#FAF3D5;
  64. padding:.125em .25em;
  65. font-size:.875em;
  66. border-radius:.25em;
  67. font-family:menlo,monaco,consolas,monospace;
  68. }
  69. h1 {
  70. display:flex;
  71. align-items:baseline;
  72. font-weight:400;
  73. font-size:2.5em;
  74. margin:0;
  75. }
  76. svg {
  77. width:2em;
  78. margin-right:.3125em;
  79. margin-left:-.125em;
  80. position:relative;
  81. top:.125em;
  82. }
  83. </style>
  84. </head>
  85. <body>
  86. <main>
  87. <h1>
  88. <svg viewBox="0 0 58 48" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="none" stroke-width="2" stroke-dasharray="4,4,0,0" stroke-dashoffset="8" stroke="#bbeae6" d="M4.61 1.525h52.25v41.777H4.61z"/><path fill="#fff" d="M0 12.24h40.736v33.588H0z"/><g opacity=".25" fill="#44d9c8"><path d="M17.79 22.387l.103.014.102.03.1.03.098.04.096.04.09.05.09.06.08.06.08.07.07.08.07.08.06.08.06.09 10.07 15.76.05.09.05.1.04.1.03.1.03.1.02.11.01.11v.21l-.01.11-.02.1-.03.1-.03.1-.04.1-.05.1-.05.09-.06.09-.06.08-.07.08-.07.08-.08.07-.08.07-.09.06-.09.05-.1.05-.1.04-.1.03-.1.02-.1.02-.11.01h-.22l-.11-.01-.1-.02-.1-.03-.1-.03-.09-.04-.1-.05-.09-.05-.09-.06-.08-.06-.08-.07-.07-.08-.07-.08-.06-.09-8.69-13.61-7.26 13.5-.06.09-.06.09-.06.08-.07.08-.08.08-.08.07-.09.06-.09.05-.09.05-.1.04-.1.04-.1.02-.1.02-.1.01-.11.01H9l-.103-.01-.1-.02-.1-.03-.1-.03-.09-.04-.09-.05-.08-.06-.085-.07-.08-.06-.08-.08-.07-.08-.064-.08-.06-.09-.05-.09-.043-.09-.04-.1-.03-.1-.025-.1-.02-.1-.01-.11-.003-.1v-.11l.01-.1.02-.11.02-.1.033-.1.04-.1.044-.1 8.466-15.8.052-.09.056-.09.07-.08.07-.07.073-.07.08-.07.09-.06.09-.05.09-.05.1-.04.1-.03.1-.03.1-.02.11-.01.1-.01h.1l.11.01z"/><path d="M30.62 27.234l.074.006.074.01.073.014.08.017.07.03.07.03.07.03.07.03.07.04.07.04.07.04.06.05.06.05.06.05.06.06.05.06.05.06.05.06.04.06 5.17 8.11.04.07.04.07.04.07.03.07.03.07.02.07.02.07.01.07.01.08.01.08.01.08v.08l-.01.07-.01.08-.01.08-.01.07-.02.08-.02.07-.03.07-.03.07-.04.07-.04.07-.04.07-.04.06-.04.06-.04.06-.05.06-.06.05-.05.05-.05.05-.06.05-.06.04-.07.04-.07.04-.06.03-.07.03-.07.03-.07.02-.07.02-.07.02-.07.01-.07.01h-.22l-.07-.01-.07-.01-.07-.02-.07-.02-.07-.03-.07-.03-.07-.03-.063-.04-.07-.03-.06-.04-.06-.05-.06-.04-.05-.05-.05-.05-.05-.05-.05-.05-.05-.06-.04-.06-3.8-5.96-3.15 5.85-.04.07-.04.06-.04.06-.05.06-.05.06-.05.06-.05.05-.06.05-.06.05-.06.047-.06.04-.06.04-.07.03-.07.03-.07.03-.07.02-.07.02-.07.02-.08.016-.072.006h-.29l-.075-.01-.07-.015-.07-.02-.07-.02-.07-.02-.07-.03-.07-.03-.07-.03-.06-.04-.066-.04-.06-.05-.06-.05-.06-.05-.05-.05-.05-.06-.05-.06-.04-.06-.04-.06-.04-.06-.04-.07-.03-.07-.03-.07-.02-.07-.02-.07-.02-.07-.01-.08-.01-.074-.05-.14v-.15l.006-.07.01-.07.01-.08.02-.07.02-.07.02-.07.03-.07.03-.07.034-.07 4.35-8.11.03-.07.04-.06.04-.06.04-.06.05-.05.05-.05.05-.05.05-.05.05-.04.06-.04.06-.04.07-.04.06-.04.07-.03.07-.03.07-.02.07-.02.07-.02.07-.01.07-.01h.21zm-10.252.926l-1.474 3.93-2.46-4.25 1.883-1.57"/><path d="M18.383 25.272l.048.005.05.006.05.01.05.01.05.013.05.015.05.02.04.02.05.02.04.03.04.03.04.03.04.03.04.03.03.04.04.04.03.04.03.04.03.04.03.04.03.05.02.04.02.04.02.05.02.05.02.05.02.05.01.04.01.05.01.05v.14l-.01.05v.05l-.01.05-.01.05-.01.05-.01.05-.02.05-.02.04-.02.04-.02.04-.03.05-.03.04-.03.04-.03.03-.03.03-.03.04-.03.03-1.23 1.03.98 1.69.73-1.95.02-.04.02-.04.02-.04.02-.04.03-.04.03-.04.03-.04.03-.03.04-.03.04-.03.04-.03.04-.03.04-.02.04-.03.04-.02.04-.02.04-.02.05-.02.05-.01.05-.02.05-.01.04-.01.05-.01h.19l.05.01.05.01.05.01.05.01.05.02.05.01.04.02.04.02.04.02.04.02.04.02.04.03.04.03.04.03.04.04.04.04.03.03.03.04.02.04.03.04.02.04.02.04.02.04.02.04.014.04.014.05.01.04.01.05.004.05v.15l-.01.05v.09l-.01.05-.01.05-.013.05-.02.046-1.48 3.93-.01.04-.02.04-.02.04-.025.04-.02.04-.03.04-.03.03-.03.03-.03.04-.04.03-.03.03-.04.03-.04.03-.04.02-.04.02-.04.02-.04.02-.05.02-.043.02-.05.01-.05.01-.05.01-.05.01-.05.005h-.15l-.05-.007-.05-.002-.05-.01-.045-.01-.05-.01-.05-.01-.05-.02-.04-.02-.047-.02-.04-.03-.04-.03-.04-.03-.04-.03-.04-.03-.03-.03-.04-.04-.03-.04-.03-.04-.02-.04-.02-.04-2.46-4.25-.02-.04-.02-.04-.02-.05-.01-.04-.014-.04-.01-.05-.01-.05-.01-.04v-.29l.01-.05.01-.04.01-.05.02-.045.01-.04.02-.043.02-.04.02-.04.02-.04.02-.04.03-.03.03-.04.03-.034.03-.03.038-.03.03-.03 1.88-1.57.04-.03.04-.02.04-.02.04-.03.04-.02.044-.02.04-.02.047-.02.047-.013.05-.01.05-.01h.05l.05-.01h.097l.046.01z"/><circle cx="26.121" cy="24.213" r="2.616"/></g><path fill="#79e2d7" fill-opacity=".196" d="M3.347 14.328h39.39V44.82H3.347z"/><path d="M42.876 13.338c.038.008.077.013.115.023.08.02.15.05.22.09.25.13.43.37.5.63.02.08.03.16.03.24v.12c-.04.46-.09.93-.13 1.39-.15 1.68-.28 3.36-.38 5.04-.17 3-.26 6.01-.24 9.02.02 2.86.13 5.72.32 8.57.12 1.68.27 3.36.44 5.03l.01.12c0 .1 0 .13-.03.23-.07.27-.25.51-.5.64-.07.04-.14.07-.22.09-.04.01-.08.02-.12.02l-1.2.15c-2.3.25-4.62.42-6.94.54-2.09.11-4.19.18-6.29.22-2.62.05-5.24.06-7.87.02-2.54-.03-5.08-.11-7.62-.24-2.25-.11-4.5-.27-6.75-.51-.33-.03-.66-.07-1-.11l-.24-.03c-.08-.01-.26-.03-.35-.05-.28-.07-.51-.25-.64-.5-.04-.07-.06-.15-.08-.23-.01-.04-.02-.08-.02-.12l-.14-1.09c-.2-1.74-.38-3.48-.53-5.23-.28-3.5-.42-7.01-.37-10.52.04-2.74.19-5.48.47-8.21.15-1.49.35-2.98.57-4.46l.03-.12c.04-.1.04-.13.1-.23.13-.21.34-.38.57-.45.08-.02.17-.04.25-.04h.13c.48.04.97.07 1.45.11 3.24.21 6.48.34 9.72.43 3.23.09 6.46.13 9.7.12 2.95 0 5.89-.04 8.84-.15 2.69-.09 5.37-.24 8.05-.49h.12l.11.01zM5.64 15.654c-.203 1.467-.374 2.938-.504 4.414-.225 2.56-.338 5.128-.35 7.697-.017 3.32.135 6.64.417 9.948.132 1.554.296 3.105.48 4.654l.036.296c2.63.3 5.27.48 7.91.608 3.18.16 6.36.23 9.55.24 3.2.01 6.4-.04 9.6-.18 2.88-.12 5.77-.3 8.64-.61l.21-.02-.13-1.34-.12-1.39c-.11-1.38-.2-2.76-.27-4.14-.13-2.58-.18-5.17-.16-7.76.02-2.59.11-5.19.27-7.78.09-1.55.22-3.09.36-4.64l.02-.2-.77.07-1.05.07c-2.96.2-5.92.3-8.88.36-2.6.05-5.2.07-7.81.05-2.79-.01-5.59-.06-8.38-.15-3.02-.09-6.03-.22-9.04-.43h-.03l-.04.26z" fill="#35cbb9" fill-rule="nonzero"/><circle cx="4.825" cy="14.505" r="2.912" fill="#fff" stroke-width="2" stroke="#35cbb9"/><circle cx="42.898" cy="14.152" r="2.912" fill="#35cbb8" stroke-width="2" stroke="#35cbb8"/><circle cx="42.736" cy="43.563" r="2.912" fill="#fff" stroke-width="2" stroke="#35cbb9"/><circle cx="4.912" cy="43.563" r="2.912" fill="#fff" stroke-width="2" stroke="#35cbb9"/><path d="M44.044 15.16l1.987 7.89 1.98-1.97 2.73 2.723 1.97-1.97-2.72-2.724 1.97-1.98-7.9-1.98z" fill="#fff"/><path d="M44.123 13.16l.082.005.082.01.082.01.08.015.08.02 7.9 1.978.08.02.08.026.07.03.07.03.07.035.07.03.07.04.07.04.07.04.06.05.06.05.06.05.06.05.05.06.06.06.05.06.05.06.05.07.04.07.04.07.04.07.03.07.03.07.03.08.02.08.02.08.02.08.01.08.01.08.01.08v.32l-.01.09-.01.08-.02.08-.02.08-.02.08-.03.08-.03.07-.03.07-.03.07-.04.07-.04.07-.05.07-.05.07-.05.06-.05.06-.06.06-.06.06-.56.55 1.31 1.31.05.06.05.06.06.06.05.07.04.07.04.07.04.07.04.07.03.08.03.08.03.08.03.08.02.08.02.08.01.08.01.08.01.08v.33l-.01.08-.01.08-.02.08-.02.08-.02.08-.02.08-.03.07-.04.08-.04.07-.04.07-.04.07-.04.07-.05.07-.05.07-.05.06-.06.06-.06.06-1.97 1.97-.06.06-.07.05-.06.05-.07.05-.07.05-.07.04-.07.04-.08.04-.08.03-.07.03-.08.03-.08.02-.08.03-.08.02-.08.02-.08.01-.08.01h-.08l-.08.01h-.17l-.08-.01-.08-.01-.08-.02-.08-.02-.08-.02-.08-.03-.08-.02-.077-.03-.074-.04-.07-.04-.07-.04-.07-.05-.07-.05-.06-.05-.065-.05-.06-.06-.06-.05-1.23-1.2-.56.55-.06.06-.064.05-.06.05-.07.05-.07.042-.07.05-.07.04-.08.034-.08.033-.08.03-.08.03-.08.02-.08.026-.08.02-.08.014-.09.02-.08.01-.09.006h-.17l-.09-.01-.08-.01-.09-.02-.08-.02-.08-.02-.08-.03-.08-.03-.08-.03-.08-.03-.08-.04-.07-.04-.07-.06-.07-.04-.07-.05-.07-.05-.07-.05-.06-.06-.06-.06-.06-.06-.06-.07-.06-.07-.05-.07-.05-.07-.05-.07-.04-.07-.03-.08-.04-.08-.03-.08-.03-.08-.03-.08-.02-.08-1.99-7.89-.02-.08-.01-.08-.01-.08-.01-.09v-.33l.01-.09.01-.08.014-.08.02-.08.02-.08.025-.08.03-.08.03-.076.03-.078.04-.073.04-.07.04-.07.05-.07.05-.07.05-.07.05-.06.06-.06.06-.06.06-.05.06-.05.07-.05.07-.04.07-.04.07-.04.075-.04.08-.034.08-.03.08-.03.08-.023.08-.02.08-.02.09-.02.08-.01.09-.01h.245zm1.908 9.89l1.98-1.97 2.73 2.723 1.97-1.97-2.72-2.724 1.97-1.98-7.9-1.98 1.99 7.89z" fill="#3e4045"/></svg>
  89. Slim
  90. </h1>
  91. <p><strong>3.1.1</strong> | 29-09-2016</p>
  92. <ul>
  93. <li>Added willRequest callback method to intercept XMLHttpRequest to make it possible to add custom request headers.</li>
  94. <li>Added example on how to remove image files from the server after the user taps the bin button.</li>
  95. <li>Improved file name security in Slim PHP script.</li>
  96. </ul>
  97. <p><strong>3.1.0</strong> | 23-09-2016</p>
  98. <ul>
  99. <li>Added rotation function. Images can now be rotated 90, 180 or 270 degrees using a button in the popup.</li>
  100. </ul>
  101. <p><strong>3.0.3</strong> | 06-09-2016</p>
  102. <ul>
  103. <li>Fixed a severe bug with the previous update where selecting a new image would no longer work.</li>
  104. <li>Improved Angular 1.x plugin inner workings.</li>
  105. </ul>
  106. <p><strong>3.0.2</strong> | 05-09-2016</p>
  107. <ul>
  108. <li>Fixed problem where Base64 images would not load on Safari because of cross origin related errors.</li>
  109. </ul>
  110. <p><strong>3.0.1</strong> | 21-08-2016</p>
  111. <ul>
  112. <li>Fixed jQuery constructor bug, where creating croppers would only work by passing an options object.</li>
  113. </ul>
  114. <p><strong>3.0.0</strong> | 19-08-2016</p>
  115. <p>This version contains changes to the jQuery API. These are small but incompatible with the previous version of Slim. The <a href="http://slim.pqina.nl/#javascript-api">documentation</a> has been updated to clearly illustrate all the changes.</p>
  116. <ul>
  117. <li>Improved jQuery API, now more in line with other jQuery plugins.</li>
  118. <li>Improved parsing of data uris now only tests against initial set of characters.</li>
  119. </ul>
  120. <p><strong>2.3.2</strong> | 12-08-2016</p>
  121. <ul>
  122. <li>Fixed problem where second attempt at cropping image would incorrectly render cropping controls.</li>
  123. </ul>
  124. <p><strong>2.3.1</strong> | 09-08-2016</p>
  125. <ul>
  126. <li>Fixed blocked page controls after closing editor on old iOS versions and old Android browsers. </li>
  127. </ul>
  128. <p><strong>2.3.0</strong> | 06-08-2016</p>
  129. <ul>
  130. <li>Added property to update <code>size</code> output after initialisation.</li>
  131. <li>Added property to update <code>ratio</code> after initialisation.</li>
  132. <li>Fixed bug where Slim would not function on certain Android browsers.</li>
  133. </ul>
  134. <p><strong>2.2.1</strong> | 28-07-2016</p>
  135. <ul>
  136. <li>Added Slim ES6 Module for use with React and Angular 2</li>
  137. <li>Improved React component setup</li>
  138. <li>Improved Angular component setup</li>
  139. <li>Improved Angular 2 component setup</li>
  140. <li>Fixed mimetype array problems caused by spaces</li>
  141. <li>Fixed React module by adding exports</li>
  142. </ul>
  143. <p><strong>2.2.0</strong> | 21-07-2016</p>
  144. <ul>
  145. <li>Added Slim React component</li>
  146. <li>Added Slim Angular directive</li>
  147. <li>Added Slim Angular 2 component</li>
  148. <li>Added <code>data-save-initial-image</code> attribute which when set to <code>true</code> saves initial image data after initialisation. </li>
  149. <li>Added <code>didTransform</code> callback</li>
  150. <li>Added public crop method <code>crop(rect, callback)</code>, this method expects input to adhere to bounds of image and the image ratio.</li>
  151. <li>Added public <code>edit()</code> method to summon the editor manually</li>
  152. <li>Added instant edit mode, set <code>data-instant-edit</code> to true to summon the image editor on file drop</li>
  153. <li>Added <code>data-force-type</code>, set to jpg or png to force the output type.</li>
  154. <li>Added fallback for files without extension, Slim now treats these files as png&#39;s.</li>
  155. <li>Improved handling of server response. If server responds with object and object contains status property, checks if it is &quot;failure&quot; if so, throws &quot;unknown error&quot;. </li>
  156. <li>Fixed Internet Explorer 10 problem where second file upload would no longer work.</li>
  157. <li>Fixed problems with extensions being uppercase</li>
  158. <li>Fixed rendering problems on older iOS browsers</li>
  159. <li>Removed stray log statement in version 2.1.0</li>
  160. <li>Removed minified versions of Commonjs and AMD wrappers as these will probably be minified in a custom build step</li>
  161. </ul>
  162. <p><strong>2.1.0</strong> | 12-07-2016</p>
  163. <ul>
  164. <li>Added <code>didSave</code> method which is called after saving the data</li>
  165. <li>Added <code>.dataBase64</code> property which returns the data in final form (similar to the format in which it is saved / sent to the server)</li>
  166. <li>Added JPEG compression control property <code>data-jpeg-compression</code> for output image</li>
  167. <li>Added basic Slim example setup to package</li>
  168. <li>Improved error testing in server scripts, if an output image is empty, it is no longer saved.</li>
  169. <li>Fixed default JPEG compression being 100% resulting in bigger file upload then necessary. Compression now defaults to browser which is around 90%.</li>
  170. <li>Fixed query string in url causing problems</li>
  171. <li>Fixed non existing file name would cause problems</li>
  172. <li>Fixed bug where Safari would not load the same image twice</li>
  173. <li>Fixed CSS icons not working in uncompressed &quot;slim.css&quot;</li>
  174. <li>Fixed jQuery methods not returning Slim return values</li>
  175. <li>Removed automatic replacing on preview image by uploaded server version</li>
  176. </ul>
  177. <p><strong>2.0.0</strong> | 07-07-2016</p>
  178. <p>This version contains changes to callback names and callback scope, if you update from a previous versions you&#39;ll have to rename the callback methods (exact changes are outlined below).</p>
  179. <ul>
  180. <li>Changes between Slim versions are now added to package and can be found in the file &quot;changes.html&quot;</li>
  181. <li>Streamlined callback methods, switched to did / will syntax. <code>this</code> in a callback now refers to Slim instance it belongs to. <ul>
  182. <li><code>onInit(slim)</code> has been changed to <code>didInit(data)</code></li>
  183. <li><code>onComplete(error, response)</code> has been changed to <code>didUpload(error, data, response)</code></li>
  184. <li><code>onRemove(slim, data)</code> has been changed to <code>didRemove(data)</code></li>
  185. <li><code>onBeforeRemove(slim, remove)</code> has been changed to <code>willRemove(data, remove)</code></li>
  186. <li><code>onTransform(data, ready)</code> has been changed to <code>willTransform(data, ready)</code></li>
  187. <li><code>onSave(data, ready)</code> has been changed to <code>willSave(data, ready)</code></li>
  188. </ul>
  189. </li>
  190. <li>Fixed download button not working on Firefox</li>
  191. <li>Fixed download button not working on Internet Explorer</li>
  192. <li>Fixed status messages not being removed after click on file input</li>
  193. <li>Fixed use of &quot;image/*&quot; accept attribute not correctly passing types to dropper</li>
  194. <li>Fixed invalid file message not showing on Windows and Linux when uploading files with file upload dialog</li>
  195. <li>Fixed showing previously loaded image when uploading image with same name</li>
  196. <li>Added status message when image is loaded that is smaller then data min size</li>
  197. <li>Added didLoad method to allow custom validation of user input</li>
  198. <li>Added element getter, <code>.element</code> now returns root element of Slim cropper. Combined with the fixed callback scope you can now use jQuery <code>$(this.element)</code> within a callback to refer to the root of the cropper.</li>
  199. <li>Added recursive mode to <code>mkdir</code> in &quot;Slim.php&quot; method so <code>saveFile</code> can now also create sub directories like <code>foo/bar/</code> instead of only <code>foo/</code></li>
  200. <li>Improved output, now only updates field value when user makes changes, unless is single image cropper</li>
  201. <li>Improved save callback, now only get&#39;s called when user makes changes, unless is single image cropper</li>
  202. <li>Updated docs</li>
  203. </ul>
  204. <p><strong>1.1.1</strong> | 27-06-2016</p>
  205. <ul>
  206. <li>Fixed bug where free ratio cropper area did not scale properly.</li>
  207. <li>Added <code>onBeforeRemoval</code> callback so you can optionally ask if the user is sure of a image removal.</li>
  208. </ul>
  209. <p><strong>1.1.0</strong> | 23-06-2016</p>
  210. <ul>
  211. <li>Added <code>data-on-complete</code> callback</li>
  212. <li>Added option to set initial crop coordinates using <code>data-crop</code> or by passing crop options to JavaScript <code>load</code> method</li>
  213. <li>Added property to retrieve a clone of the current crop data <code>.data</code></li>
  214. <li>Added feature where Slim cleans data sent to server but leaves <code>meta</code> property alone for custom values.</li>
  215. <li>Added flag to data object to indicate crop type (&#39;auto&#39;, &#39;manual&#39; or &#39;initial&#39; based on type of crop).</li>
  216. <li>Improved async uploading functionality. The server response (including the file name and path) is now stored in a hidden field to unlock this data when submitting the form </li>
  217. <li>Improved load method, it now returns resulting data object in callback</li>
  218. <li>Improved performance when Slim is not attached to the DOM</li>
  219. <li>Fixed bug where on iOS8 the popover would keep blocking the view after it closed</li>
  220. <li>Fixed problem when removing file by clicking on Slim, same file could not be loaded twice</li>
  221. <li>Removed &quot;invalid response&quot; status, as any server response is now acceptable for storage in hidden input.</li>
  222. </ul>
  223. <p><strong>1.0.7</strong> | 16-06-2016</p>
  224. <ul>
  225. <li>Fixed problem where hidden input was not emptied after remove button press</li>
  226. <li>Fixed problem where certain crop results would be transparent on Safari / iOS </li>
  227. <li>Remove function now returns data object immediately when calling via API</li>
  228. <li>When setting an initial image, the init method will now be called after the image has loaded</li>
  229. <li>The init method is now always called after the Slim instance has been created</li>
  230. <li>Fixed problem where Safari would not restore input of type &quot;file&quot; properly</li>
  231. </ul>
  232. <p><strong>1.0.6</strong> | 15-06-2016</p>
  233. <ul>
  234. <li>Fixed data object not being passed to remove callback</li>
  235. <li>Fixed destroy method not cleaning up properly</li>
  236. </ul>
  237. <p><strong>1.0.5</strong> | 14-06-2016</p>
  238. <ul>
  239. <li>Source files are now contained in the package as well</li>
  240. <li>Minified files are now a little bit more compact</li>
  241. <li>Fixed problems with editing a single image</li>
  242. <li>Fixed problem where push option would not push after adding a new image</li>
  243. <li>Fixed problem where push option would not push initial image</li>
  244. <li>Fixed problem where editing a single image would show remove button</li>
  245. <li>Renamed the &quot;reset&quot; end point to &quot;remove&quot;</li>
  246. </ul>
  247. <p><strong>1.0.4</strong> | 10-06-2016</p>
  248. <ul>
  249. <li>Fixed push option directly uploading on page load</li>
  250. <li>Now accepts cross origin urls. Make sure cross origin requests are configured correctly on the remote server.</li>
  251. <li>Now has the ability to load Data URI sources. File name will be set to &quot;unknown&quot;</li>
  252. </ul>
  253. <p><strong>1.0.3</strong> | 07-06-2016</p>
  254. <ul>
  255. <li>Add option to preload server image</li>
  256. <li>Fixed bug where second file would not be allowed to drop on Firefox </li>
  257. <li>Fixed bug where blurring in image editor was incorrect when loading a new image</li>
  258. <li>Fixed bug where data size would not resize bigger portrait images properly</li>
  259. <li>Added onRemove proeprty so it&#39;s possible to handle removal of images</li>
  260. <li>Added onInit property so it&#39;s possible to detect when Slim has initialised</li>
  261. <li>Slim.create now returns the created Slim instance</li>
  262. <li>Slim.parse now returns an array of created Slim instances</li>
  263. </ul>
  264. <p><strong>1.0.2</strong> | 03-06-2016</p>
  265. <ul>
  266. <li>Fixed problem where image editor button captions would not change to set labels</li>
  267. </ul>
  268. <p><strong>1.0.1</strong> | 02-06-2016</p>
  269. <ul>
  270. <li>Fixed problem where image was uploaded as PNG instead of JPEG</li>
  271. <li>Added functionality which corrects JPEGs uploaded as PNGs (which sometimes happens on older browsers). Slim now makes sure the extension matches the image format.</li>
  272. <li>Improved performance of image editor</li>
  273. <li>Fixed window resizing render problems in image editor</li>
  274. <li>Plus various small code optimisations</li>
  275. </ul>
  276. <p><strong>1.0.0</strong> | 26-05-2016 </p>
  277. <ul>
  278. <li>Initial release</li>
  279. </ul>
  280. </main>
  281. </body>
  282. </html>