Tag Archives: Image

How to add validation to check image size of “media upload” type product attribute

I want to validate “media upload” type product attribute(in admin on product edit page), to check size of selected image. I have added a class “validate-image-size” to each radio button for that attribute and I have added below validation for … Continue reading

How to hide an image with php?

hello, I’ve been trying to hide an image that I have on my website using php. by hide, I mean hide the actual image, not the path. I’ve looked all over the internet for a tutorial on this but all … Continue reading

Zoom a particular part of image w. r. t its coordinates when mouse is moved over it

Hello All, I have inserted an image in html and the image has few buttons, which i made it as a hyperlink through rectangular hotspots and i need to zoom the part of the image where the buttons are present … Continue reading

Upload Image to Website – Fantastic PHP script

Error in writing a grayscale image

In the following code am trying to read a grayscale image, store the pixel values in a 2D array and rewrite the image with a different name. The code is package dct; import java.awt.image.BufferedImage; import java.awt.image.DataBufferByte; import java.awt.image.Raster; import java.io.File; … Continue reading