Search found 26 matches
- 2019-09-29T13:00:50-07:00
- Forum: Users
- Topic: How to create drop shadow on resized image with an extension?
- Replies: 20
- Views: 33207
Re: How to create drop shadow on resized image with an extension?
FMW42, thank you! You've helped me solve a vexing problem! It all works now, and I've compiled it into a configurable Windows batch file. In case this should help someone else who's trying to solve this or a similar problem, here's the batch code, whose environment variable could be set to parameter ...
- 2019-09-29T11:46:21-07:00
- Forum: Users
- Topic: How to create drop shadow on resized image with an extension?
- Replies: 20
- Views: 33207
Re: How to create drop shadow on resized image with an extension?
It seems we need to subtract 1 from the SHAVE variable, just as we did before with the XOFFSET and YOFFSET variables, so SHAVE should be: shave = ((4*3 - 2*5)/2) -1 It's clear that the "3" is the opacity in the formula (from 3+5+5), but is the "5" the x-offset or the y-offset? And does it switch ...
- 2019-09-29T10:02:07-07:00
- Forum: Users
- Topic: How to create drop shadow on resized image with an extension?
- Replies: 20
- Views: 33207
Re: How to create drop shadow on resized image with an extension?
Great! The result of your routine is better than mine, and the routine does seem configurable. There seems to be one fly left in the ointment: If I change the X and Y offsets of the -shadow to 2 and 2, like this: -shadow 63x3+2+2 ...then the image is no longer centered: https://bmt-systems.com ...
- 2019-09-28T23:38:58-07:00
- Forum: Users
- Topic: How to create drop shadow on resized image with an extension?
- Replies: 20
- Views: 33207
Re: How to create drop shadow on resized image with an extension?
Have you tried your method on images to check? It doesn't work as you describe, or perhaps I don't understand. If I understand your explanation, the routine as it stands will work for landscape images. Here is a 4:5 landscape image: https://bmt-systems.com/4x5.jpg After processing it with the ...
- 2019-09-28T20:20:16-07:00
- Forum: Users
- Topic: How to create drop shadow on resized image with an extension?
- Replies: 20
- Views: 33207
Re: How to create drop shadow on resized image with an extension?
That does work perfectly for the rose example, but it's not useful for images of other sizes. I'm using this routine to make thumbnails from images of arbitrary sizes. This routine only seems to work for the rose image. The method I outlined earlier, making two clones with a visible (63 opacity ...
- 2019-09-28T13:57:47-07:00
- Forum: Users
- Topic: How to create drop shadow on resized image with an extension?
- Replies: 20
- Views: 33207
Re: How to create drop shadow on resized image with an extension?
It can be verified by opening the resulting image in Photoshop, switching the ruler to pixels, zooming in, and measuring: The left margin is 7px, the right margin is 5px. The top margin is 22px, the bottom margin is 20px. https://bmt-systems.com/result-with-shadow.png It may be easier to see if the ...
- 2019-09-28T12:08:40-07:00
- Forum: Users
- Topic: How to create drop shadow on resized image with an extension?
- Replies: 20
- Views: 33207
Re: How to create drop shadow on resized image with an extension?
Nice, but it's not perfectly centered. The top margin is greater than the bottom margin (not immediately visible but measurable), and the left margin is visibly greater than the right margin (set the shadow to 0x3+5+5 and you'll see the difference).
- 2019-09-28T11:34:27-07:00
- Forum: Users
- Topic: How to create drop shadow on resized image with an extension?
- Replies: 20
- Views: 33207
Re: How to create drop shadow on resized image with an extension?
Aha! I figured it out. If I make a second clone and put an INVISIBLE shadow on it shifted to the opposite corner of the image, I'll have an image that, when centered, creates the exact effect I'm seeking: convert rose: -resize 88x88 ( +clone -background #000 -shadow 63x3+2+2 ) +swap ( +clone ...
- 2019-09-28T10:45:19-07:00
- Forum: Users
- Topic: How to create drop shadow on resized image with an extension?
- Replies: 20
- Views: 33207
Re: How to create drop shadow on resized image with an extension?
Okay, I see what you mean. But that doesn't solve my problem. How do I make the image centered, like this, with the drop shadow falling off the centered image:
?
?
- 2019-09-28T09:47:24-07:00
- Forum: Users
- Topic: How to create drop shadow on resized image with an extension?
- Replies: 20
- Views: 33207
Re: How to create drop shadow on resized image with an extension?
Wait, I read some other posts related to this issue, and there appears to be a bug affecting this in the version of IM I was using. So I've installed the current version: Version: ImageMagick 7.0.8-66 Q16 x64 2019-09-22 ...and the rose conversion above completes successfully. I'm very close to ...
- 2019-09-28T08:46:17-07:00
- Forum: Users
- Topic: How to create drop shadow on resized image with an extension?
- Replies: 20
- Views: 33207
Re: How to create drop shadow on resized image with an extension?
Hmm. Something's not working. Let's confirm version compatibility first. I'm using: ImageMagick 7.0.8-47 Q8 x64 2019-05-27 When I run the first example at the "Generating Shadows" tutorial you hyperlinked (http://www.imagemagick.org/Usage/blur/#shadow): convert rose: ( +clone -background navy ...
- 2019-09-28T00:00:20-07:00
- Forum: Users
- Topic: How to create drop shadow on resized image with an extension?
- Replies: 20
- Views: 33207
How to create drop shadow on resized image with an extension?
I'm making JPG thumbnails of images of varying sizes. I'm resizing them while preserving aspect ratio so that neither H nor W is greater than 88px, and the resulting image is centered on a 100x100px #eeeeee "canvas" created with -extent: convert source.jpg -resize 88x88 -background #eeeeee -gravity ...
- 2017-12-26T08:19:52-07:00
- Forum: IMagick
- Topic: How to use imagick with PHP 7.2?
- Replies: 2
- Views: 14278
How to use imagick with PHP 7.2?
In PHP 7.2, the extensions definitions in the php.ini file do not require the initial "php_" nor the extension ".dll". So, for the php_imagick.dll file to be specified as an extension in the php.ini file, in theory you only need to add: extension=imagick Not: extension=php_imagick.dll ...although ...
- 2016-12-02T09:49:57-07:00
- Forum: IMagick
- Topic: PHP 7.1 cannot use current version of Imagick
- Replies: 1
- Views: 13429
PHP 7.1 cannot use current version of Imagick
I used the most recent version of Imagick (php_imagick-3.4.3rc1-7.0-ts-vc14-x86.zip) successfully with XAMPP/PHP 7.0.13. localhost on Windows. Today, PHP 7.1 has been released. Upon installation, it fails to load Imagick, reporting this error: [02-Dec-2016 16:46:32 UTC] PHP Warning: PHP Startup ...
- 2016-01-01T01:16:07-07:00
- Forum: IMagick
- Topic: Resized PNGs are black...what am I doing incorrectly?
- Replies: 8
- Views: 19161
Re: Resized PNGs are black...what am I doing incorrectly?
Thanks for catching that--it was a typo in my example code *only*; the code I was using had 'PNG'. And I double-checked the code on my live site. However...by changing it to "png" (in double quotes and lower case), suddenly the PNG images converted. That really shouldn't have made a difference ...