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 6920729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:11:07+00:00 2026-05-27T10:11:07+00:00

How to create a new image with imagemagick? exec(‘/usr/local/bin/convert -size 900×360 -quality 90 xc:white

  • 0

How to create a new image with imagemagick?

exec('/usr/local/bin/convert -size 900x360 -quality 90 xc:white new_image.png')

what am I doing wrong here? The image is not created.. Imagemagick does work because I can resize an already existing image

… and how is it possible to define a HEX code color as background eg. ff0000

There are no errors in Apache error log

edit

$this->image = tempnam(Init::$dynamic['tmp_path'], null);
        $syn = $this->path_im.'convert -size '.$this->width.'x'.$this->height.' -quality '.$this->quality.' xc:white '.$this->image;
        echo $syn;
        exec($syn);
  • 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-05-27T10:11:08+00:00Added an answer on May 27, 2026 at 10:11 am

    It’s hard to solve a problem without knowing what it is, but here are some ideas.

    SSH

    If you have Secure Shell access to your server (or it’s on your local computer) you should navigate to the same directory your script is in, and then run the command from there. That way you can see the output from the command. Check the errors, search them on Google, fix the problem.

    Permissions

    On UNIX computers, different users have different permissions in different places. Make sure that your directory lets you write to it. Try changing the permissions to 777 for the folder either with chmod 777 myfolder/ or chmod a+w myfolder or with your GUI interface. Then try the command again.

    Once you have that working, you can put it back to 755. The 777 is to make testing less error-prone.

    Hope that helps.

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

Sidebar

Related Questions

I create new blank solution. Add exist web site. Structure: Solution E:...\projectname Folders: bin
I have successfully used the following command line to create a new GIF image
I'm currently using ImageMagick's convert command to create text preview (.png) from .ttf font
How do I create a new image with a black background and paste another
I am trying to create a high quality thumbnail of this image, with Java
I have a code: function draw(ctx) { // create new image object to use
I am trying to create a new Image from raw data in unsigned char
I'm wondering how to create a new UIImage by overlaying one image overtop of
How do i create new bmp image in java from int array that contains
I want to create a new irregular image from a image on iPhone User

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.