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

  • SEARCH
  • Home
  • 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 989385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:47:03+00:00 2026-05-16T05:47:03+00:00

Having until now only used PHP’s gd image library to resize, crop and greyscale

  • 0

Having until now only used PHP’s gd image library to resize, crop and greyscale images I’m currently struggling to find a way to simulate what happens when, in Photoshop, you place a coloured layer over a greyscale image and select ‘multiply’ from the layer effects menu. Or, as my old print lecturer would explain it, I need to make a duotone.

For some reason I had thought that all I needed to do was to simply turn the image greyscale and then drop a coloured layer with an transparency value less than 100% over the top. Once I’d done this I wondered why I ever thought I’d get anything other than washed-out.

Having then trawled the gd library documentation, all I could find was the IMG_EFFECT_OVERLAY filter to use with imagelayereffect but the result of this keeps the white of my greyscale image white rather than making it red.

I haven’t used ImageMagick before (but this is one of those rare occasions where I have control over the server so I can install it if I need to) and, having glanced at the documentation in the past, I had presumed that something like Photoshop’s multiply would be one of its default filters. Alas no.

My tired brain is struggling to understand what Photoshop’s multiply is actually doing on a pixel by pixel basis so I don’t what, if any, series of ImageMagick’s (or if possible, gd’s) more basic filters I could use to get the result I need.

A deadline looms and Google refuses to return any useful results so any help here would be gratefully received.

  • 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-16T05:47:04+00:00Added an answer on May 16, 2026 at 5:47 am

    ImageMagick does have a multiply operation. I can’t say how close it is to Photoshop’s in result and quality (I don’t really understand what it does either :), but be sure to try it out.

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

Sidebar

Related Questions

Long time reader never posted until now. Im having some trouble with Android, im
twitteroauth has been fantastic up until now, but I'm having trouble gathering all of
Having used some PHP frameworks such as Codeigniter and Kohana for some smaller sites,
I'm having problems with my URL. My urls are modrewrited and until now I
Having been a PHP developer on LAMP servers for quite a while, is there
Having worked with Classic ASP for about 2 years now by creating a few
Having a problem getting a TreeView control to display node images. The code below
Recently, i began developing a driver of an embedded device running linux. Until now
When building PHP applications I always end up having trouble trying to get everything
I'm currently programming a little text editor (project for school) and I'm having some

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.