Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8488119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:26:36+00:00 2026-06-10T21:26:36+00:00

I try to convert a rgb color to transparent When i use this code

  • 0

I try to convert a rgb color to transparent

When i use this code in the command line, it works perfect.

convert -transparent 'RGB(249,249,255)' /home/me/web/my.png /home/me/web/mynew.png

But when i use it with php:

<?php

error_reporting(E_ALL);
ini_set('display_errors', '1');

$output = shell_exec("convert -transparent 'RGB(249,249,255)' /home/me/web/my.png /home/me/web/mynew.png");

?>

i get the error:

convert: unable to open image `/home/me/web/mynew.png’: @ error/blob.c/OpenBlob/2498.

Has anyone a idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:26:38+00:00Added an answer on June 10, 2026 at 9:26 pm

    To me that looks like an access-rights issue. Your web server tries to write a file inside your home directory.

    Normally your home-directory is protected in such a way that no one except yourself can write files in there. Therefore your web server can not create the new file while you can when using the terminal.

    Check the access rights to the folder that shall contain the new image and allow the user that is running the web server to write to that folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to convert a number between 0 and 255 to hexadecimal format. If
When I try to convert between date and string in Flash CS4, I use
I've used the 'hg convert' command to try to move my SVN repository to
Try this code - import java.io.StringReader; public class StringReaderTest { public static void main(String[]
When I try to convert a NSString object into a NSdata object, I use
I try to convert keystrokes into chracters. In other question someone recommand to use
If I try to convert a transparent .png SDL_Surface to a OpenGL texture, then
I try to convert a string : 3033547640189791162 with this method : NSNumber *
Here is my target format: 19 AUG 2011 And I try to convert this
We try to convert from string to Byte[] using the following Java code: String

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.