You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 15, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: src/DB.php
+37-10Lines changed: 37 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -205,28 +205,55 @@ public function read_comments(string $uri)
205
205
206
206
207
207
/**
208
-
* Returns a picture of `$uri` by reading embedded pictures from binary tags.
208
+
* Returns data and content of a picture embedded in `$uri`.
209
+
*
210
+
* If `$uri` is not found the function returns `false`.
211
+
*
212
+
* If `$uri` is found but does not contain a picture the function will return `[ "size" => 0, "type" => null, "binary" => null ]`.
213
+
*
214
+
* If `$uri` is found and contains a picture the returned array will contain information about the picture and
215
+
*
216
+
* if `$include_binary` is `true` the array also contains the picture itself.
209
217
* @param string $uri Song URI.
210
-
* @return false|string `false` on failure otherwise `string` containing either the picture or an empty string in case the file does not contain a picture.
218
+
* @param bool $include_binary If `true` the array's `binary`-item will contain the picture. If `false` the array's `binary`-item is `null`.
219
+
* @return array|false Returns `false` on failure and an associative array containing `size`,`type` and (optionally) `binary` on success.
* Returns a picture of `$uri` by reading embedded pictures from binary tags.
251
+
* @param string $uri Song URI.
252
+
* @return false|string `false` on failure otherwise `string` containing either the picture or an empty string in case the file does not contain a picture.
0 commit comments