Skip to content

Commit c6a96fb

Browse files
committed
Added text to fake image generator to hide image dimensions.
1 parent 7dd8f78 commit c6a96fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

framework/Supports/FakerContent.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,10 @@ public function words( $qty = 3 ) {
183183
*
184184
* @return int|string
185185
*/
186-
public function image_attachment( $width = 1100, $height = 800, $type = 'id' ) {
186+
public function image_attachment( $width = 1200, $height = 800, $type = 'id' ) {
187187
$color = substr( md5( microtime( true ), false ), 0, 6 );
188-
$attach_url = "http://via.placeholder.com/{$width}x{$height}/$color";
188+
$text = $this->faker->words( 2, true );
189+
$attach_url = "http://via.placeholder.com/{$width}x{$height}/$color/?text=$text";
189190

190191
if ( 'id' !== $type ) {
191192
return $attach_url;

0 commit comments

Comments
 (0)