Sponsored Content
Full Discussion: Help with blobbing
Operating Systems OS X (Apple) Help with blobbing Post 302851321 by Scrutinizer on Sunday 8th of September 2013 06:50:56 AM
Old 09-08-2013
Perhaps something this is more what you are looking for:

Code:
cd ~/Desktop/filing/
while : 
do
  for i in *.jpg
  do
    if [ -f "$i" ]; then
      case $i in 
         1[0-9][0-9][0-9][!0-9]*.jpg|1[0-9][0-9][0-9].jpg) 
            scp "$i" ../filed/1000 ;;
         1[0-9][0-9][0-9][0-9][!0-9]*.jpg|1[0-9][0-9][0-9][0-9].jpg)
            scp "$i" ../filed/13000 ;;
       esac
     fi
  done
  sleep 10
done

 
IMAGECREATEFROMSTRING(3)						 1						  IMAGECREATEFROMSTRING(3)

imagecreatefromstring - Create a new image from the image stream in the string

SYNOPSIS
resource imagecreatefromstring (string $image) DESCRIPTION
imagecreatefromstring(3) returns an image identifier representing the image obtained from the given $image. These types will be automati- cally detected if your build of PHP supports them: JPEG, PNG, GIF, WBMP, and GD2. PARAMETERS
o $image - A string containing the image data. RETURN VALUES
An image resource will be returned on success. FALSE is returned if the image type is unsupported, the data is not in a recognised for- mat, or the image is corrupt and cannot be loaded. EXAMPLES
Example #1 imagecreatefromstring(3) example <?php $data = 'iVBORw0KGgoAAAANSUhEUgAAABwAAAASCAMAAAB/2U7WAAAABl' . 'BMVEUAAAD///+l2Z/dAAAASUlEQVR4XqWQUQoAIAxC2/0vXZDr' . 'EX4IJTRkb7lobNUStXsB0jIXIAMSsQnWlsV+wULF4Avk9fLq2r' . '8a5HSE35Q3eO2XP1A1wQkZSgETvDtKdQAAAABJRU5ErkJggg=='; $data = base64_decode($data); $im = imagecreatefromstring($data); if ($im !== false) { header('Content-Type: image/png'); imagepng($im); imagedestroy($im); } else { echo 'An error occurred.'; } ?> The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example : imagecreatefromstring() SEE ALSO
imagecreatefromjpeg(3), imagecreatefrompng(3), imagecreatefromgif(3), imagecreatetruecolor(3). PHP Documentation Group IMAGECREATEFROMSTRING(3)
All times are GMT -4. The time now is 10:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy