LaTeX: Include and Scale SVG (Scalable Vector Graphics) Image

Here is a step-by-step guide on including and scaling SVG image on LaTeX. 1) Download and install Inkscape: https://inkscape.org/en/download/ 2) Suppose, I have an SVG image named image.svg. Run the following command that exports your SVG image to PDF and LaTeX format. inkscape -D -z –file=image.svg –export-pdf=image.pdf –export-latex This will create two new files named … Read more

Joomla: Add Image Slideshow in Article

I had to add an image slideshow just at the beginning of an article in Joomla CMS. I searched for such extension and found few good ones. 1) Simple Picture Slideshow | Demo This is a simple extension with only one transition effect ‘fade out’. Slideshow can be started manually or automatically on pageload. Button … Read more

phpThumb(): The best PHP thumbnail image generator

As far as I see, I find phpThumb() as the best of all PHP thumbnail image generator. It has lots of thumbnail generation features. You can create thumbnail in a number of ways with phpThumb(). phpThumb() uses the GD library to create thumbnails from images (JPEG, PNG, GIF, BMP, etc) on the fly. Basic functionality … Read more

Magento: Crop image

Here is a quick tip to crop image to any degree of your choice in Magento. The crop function of Varien_Image does the magic :) Here goes the code: $mainImage = Mage::getBaseDir('media') . DS . 'test' . DS . 'image.jpg'; $image = new Varien_Image($mainImage); // crop image // crop($top=0, $left=0, $right=0, $bottom=0) $image->crop(10, 10, 10, … Read more

Magento: Rotate image

Here is a quick tip to rotate image to any degree of your choice in Magento. The rotate function of Varien_Image does the magic :) Here goes the code: $mainImage = Mage::getBaseDir('media') . DS . 'test' . DS . 'image.jpg'; $image = new Varien_Image($mainImage); // rotate image with the angle of your choice // rotate($angle) … Read more

Magento: Create Watermark Image

It’s very very easy to create watermark image with Magento code. The Varien_Image class does the magic. The function watermark creates watermark on the image. Here is the code: $mainImage = Mage::getBaseDir('media') . DS . 'test' . DS . 'image.jpg'; $watermarkImage = Mage::getBaseDir('media') . DS . 'test' . DS . 'watermark.jpg'; $image = new Varien_Image($mainImage); … Read more