Convert .psd and .ai to PNG/JPG with imagick
I'm creating thumbnails for a Digital asset manager, what is the best way to do this with imagemagick? is there good resource out there? I solved it and will share with the WORLD! it will convert .ai, .psd, .jpg, .png, .gif into thumbnails. Here is a function that takes 4 params: $dir - directory to save to. $tmpName - the name to name the file excluding the extension. $fileType - self explanatory. $size - Large or small. function thumbGenerator($dir,$tmpName,$fileType,$size){ $saveFileType = "png"; $imagePath = $dir.$tmpName.".".$fileType; $image = new Imagick(); $image->readimage($imagePath)