As we all know, it is possible to add/edit effect on a image using php. But can we also do the same thing for a video? I have done some searching for this but no results.
I am giving a link which shows how to show effects on an image and which is working fine, but what about video?
You can do this image effects with GD library.
PHP is not limited to creating just HTML output. It can also be used
to create and manipulate image files in a variety of different image
formats, including GIF, PNG, JPEG, WBMP, and XPM. Even more
convenient, PHP can output image streams directly to a browser. You
will need to compile PHP with the GD library of image functions for
this to work. GD and PHP may also require other libraries, depending
on which image formats you want to work with.
But unfortunately there is no library available in php to Video accessing and adding effects.
I downloaded ImageMagick expecting to use it to resize images on my website like phpthumb use to do before the function are deprecated. But the fact is that i am not finding anywhere how to use it to resize en image with PHP code.
I see some command line but i want to resize using some php code
Thanks for helping
Sure you can resize images with imagemagik. PHP has a wrapper class. Check this https://github.com/avalanche123/Imagine and this http://imagine.readthedocs.org/en/latest/usage/introduction.html#resize-images. You can go with GD library if needs are minimal with images.
I'd like to take an image and turn the corners over to make a box (like a canvas painting)
i have gd library, imagemagick installed on the server and imagick php extension installed.
is it possible? any help appreciated
turn the corners over
You're gonna need to explain this a little better. You can overlay a frame onto an image with the GD functions. Check out imagecopymerge()
Like at Digg.com, I want to get members' pictures cropped for an avatar use. Please show me how to do this in PHP.
Here is a free script that does it using either GD or Imagick (Imagick is faster so I would use that):
Crop & Resize with JavaScript, PHP, and ImageMagick
From near the top of the page linked above:
Update: A new version of this example
and demonstration has been released.
Version 1.1 includes a GD version of
the script as well as a number of
functional improvements worth checking
out.
Does anyone know about a PHP library which can produce layered PNG images? (I'm not sure, but I think that tiff image standard supports layers also)
AFAIR, PNG does not support layers. MNG does and you can produce these with ImageMagick. For PHP extension see: http://www.php.net/imagick
From the ImageMagic API site:
PHP
MagickWand for PHP a native PHP-extension to the ImageMagick MagickWand API.
IMagick is a native PHP extension to create and modify images using the ImageMagick API. Documentation for the extension is available here.
phMagick is a wrapper class for ImageMagick, wrapping the most common web image manipulation actions in easy to use functions, but allowing full access to ImageMagick's power by issuing system calls to it's command-line programs.
ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.
Assuming you mean the layered PNG files as per fireworks, I don't think you can do it. I've not seen anything except fireworks that supports these files properly.