png issue

a problem with uploading png images the background will shown a black color

Hi,

Could you please be more specific about your problem?

Also, a link to the PNG file would be appreciated.

Many Thanks
Stephen

i was uploading a png image using php code,in the displaying section background shown black

Hi,

Unfortunately that is no more helpful that the original question.

Could you please provide the follow in as much detail as possible:

- Steps to reproduce this problem
- Any related PHP code
- Link to PNG file
- Related Omeka URLs

Being verbose as possible will allow us to help you quicker.

Cheers
Stephen

i am using the code
/*image Upload process*/

$images = $_FILES['prd_image']['name'];

$FilePaths = $_FILES['prd_image']['tmp_name'];

$ext = strtolower(substr($images,strlen($images)-3,3));

if (preg_match("/(jpg|gif|png|bmp)/",$ext))

{

$newFilename = $rend.".".$ext;

$cropB="../productsimg/big/".$newFilename;

$cropS="../productsimg/small/".$newFilename;

$object = createThumbnail($FilePaths, $cropS,120,120);

$object = createThumbnail($FilePaths, $cropB,400,632);

}

else

{

$err[] = "Invalid image format. Upload (jpg,gif,png,bmp) only";

$isProcess = false;

}

}else{

$err[] = "Select a product Image";

$isProcess = false;

}

$prd_desc = trim($_REQUEST['description']);

if($isProcess){

$insert_qry = "insert into category(prd_cat_name,prd_title,prd_sub_title,prd_cat_desc,prd_price,prd_image,created_date,company_id) values('".mysql_real_escape_string($prd_cat)."','".mysql_real_escape_string($prd_title)."','".mysql_real_escape_string($prd_sub_title)."','".mysql_real_escape_string($prd_desc)."','".mysql_real_escape_string($prd_price)."','".mysql_real_escape_string($newFilename)."',now(),$company)";

$insert_rst = mysql_query($insert_qry);

Hi,

Just to clarify that this is Omeka or an Omeka Plugin you are using? If so, what version of Omeka are you using?

Cheers
Stephen