Thanks. I was actually going to give that a try earlier, but then saw his PS examples and figured he wanted something else.Shadow only works on the image alpha shape. As such if you negate alpha, you can generate a shadow for the inside
of the image.
-shadow like photoshop inner-shadow on rounded rectangle
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: -shadow like photoshop inner-shadow on rounded rectangle
Re: -shadow like photoshop inner-shadow on rounded rectangle
hi;
how can ı php functions on to create inner shadow image. please sample code. sample image : https://cdn.pluscanvas.com/d/0-0-1-6358 ... d-tree.jpg
how can ı php functions on to create inner shadow image. please sample code. sample image : https://cdn.pluscanvas.com/d/0-0-1-6358 ... d-tree.jpg
Re: -shadow like photoshop inner-shadow on rounded rectangle
That looks like a normal shadow to me.
Crop your image
Create your canvas effect on each new image
Add a drop shadow to each of the new images
Arrange the new images with the drop shadow on a canvas
If you want somebody to write the whole code to create the complete effect on the attached image you will probably be out of luck as it is quite complicated.
If that is the case I suggest you have a go and do what you can and then come back with any questions.
Crop your image
Create your canvas effect on each new image
Add a drop shadow to each of the new images
Arrange the new images with the drop shadow on a canvas
If you want somebody to write the whole code to create the complete effect on the attached image you will probably be out of luck as it is quite complicated.
If that is the case I suggest you have a go and do what you can and then come back with any questions.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: -shadow like photoshop inner-shadow on rounded rectangle
Looks to me like two different outer shadows. Plus a gradient background. Plus a gradient shading on the 4 images.
Can you provide the input image(s)? You can post to some free hosting service such as dropbox.com and put the URLs here.
Also always identify your version of Imagemagick and platform, since syntax differs.
Can you provide the input image(s)? You can post to some free hosting service such as dropbox.com and put the URLs here.
Also always identify your version of Imagemagick and platform, since syntax differs.
Re: -shadow like photoshop inner-shadow on rounded rectangle
Hi everyone,
I have same above problem with image. I have to apply Inner Shadow on image from all sides same like Photoshop. Till now to I have done as in my below URL
Image with Blur:
https://stagedesignerimages.artifi.net/ ... 1465b2.png
but the problem is Blur is applying on whole image instead of applying only on Inner shadow.
Used image:
https://stagedesignerimages.artifi.net/ ... dad1b5.png
IM command:
convert input.png ( -clone 0 -alpha extract ) ( -clone 0 -bordercolor none -border 9 -channel rgba -blur 6x6 -shave 9x9 ) -delete 0 +swap -alpha off -compose copy_opacity -composite output.png
Please suggest and provide sample command.
Thanks in advance.
I have same above problem with image. I have to apply Inner Shadow on image from all sides same like Photoshop. Till now to I have done as in my below URL
Image with Blur:
https://stagedesignerimages.artifi.net/ ... 1465b2.png
but the problem is Blur is applying on whole image instead of applying only on Inner shadow.
Used image:
https://stagedesignerimages.artifi.net/ ... dad1b5.png
IM command:
convert input.png ( -clone 0 -alpha extract ) ( -clone 0 -bordercolor none -border 9 -channel rgba -blur 6x6 -shave 9x9 ) -delete 0 +swap -alpha off -compose copy_opacity -composite output.png
Please suggest and provide sample command.
Thanks in advance.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: -shadow like photoshop inner-shadow on rounded rectangle
Please identify your IM version. Also please show your Photoshop result.
Re: -shadow like photoshop inner-shadow on rounded rectangle
Hi,
IM version is "ImageMagick-6.9.1-Q16-HDRI"
Photoshop result with applied inner shadow values in Photoshop.
https://stagedesignerimages.artifi.net/ ... 29f559.jpg
Thanks
IM version is "ImageMagick-6.9.1-Q16-HDRI"
Photoshop result with applied inner shadow values in Photoshop.
https://stagedesignerimages.artifi.net/ ... 29f559.jpg
Thanks
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: -shadow like photoshop inner-shadow on rounded rectangle
This should do it. Adjust the 25% to a larger value if you want the shadow darker.
input:
input:
Code: Select all
convert penguin.png \
\( -clone 0 -alpha extract \) \
\( -clone 1 -blur 0x10 -level 25x100% \) \
+swap -compose multiply -composite \
penguin_shadow.png
Re: -shadow like photoshop inner-shadow on rounded rectangle
Thank You Fred its working fine now, this is what I needed.
Thanks a lot
Thanks a lot