Search found 20 matches

by laurens_at_hol
2013-12-03T07:58:47-07:00
Forum: Users
Topic: How to reduce noisy pixels around rounded corners?
Replies: 6
Views: 4366

Re: How to reduce noisy pixels around rounded corners?

Ok, so I'm using png output now. There are no noise pixels added around the corners, but now I have the problem of aliasing. The corners are not as smooth as I would like them to have (visible in the screenshot posted earlier). I tested a bit with -blur but I was not getting smooth (anti-aliased ...
by laurens_at_hol
2013-11-19T06:47:02-07:00
Forum: Users
Topic: How to reduce noisy pixels around rounded corners?
Replies: 6
Views: 4366

Re: How to reduce noisy pixels around rounded corners?

Here I zoomed in 500% on a corner of the rose image with rounded corners: http://screencast.com/t/WD0fCa6JGn I used some red arrows to point out some of the noise pixels. I also tested now with png output instead of jpg I was using earlier. http://screencast.com/t/WxSNTd8jnl The png looks clean. No ...
by laurens_at_hol
2013-11-19T02:38:34-07:00
Forum: Users
Topic: How to reduce noisy pixels around rounded corners?
Replies: 6
Views: 4366

How to reduce noisy pixels around rounded corners?

Hi, I use following commandline options to create rounded corners on an input photo. The rounded image is then placed on a white background. Problem now is that there is a little bit of noise visible on the outside of the rounded corners. A few colored pixels near the rounded corners are visible on ...
by laurens_at_hol
2013-10-16T00:03:25-07:00
Forum: Users
Topic: Problem escaping parentheses
Replies: 9
Views: 4997

Re: Problem escaping parentheses

It is not that I want to use double backslashes, but in order to add a single backslash to a php string variable it must be escaped with another backslash.
When the backslash is not escaped with a second backslash this produces a syntax error.
by laurens_at_hol
2013-10-15T05:37:03-07:00
Forum: Users
Topic: Problem escaping parentheses
Replies: 9
Views: 4997

Re: Problem escaping parentheses

... error_log($str); exec($str); Log /usr/bin/convert "/var/www/Tools/data/uploads/e3v3rui746hd55dhtskbcn2592525d35b947437.jpg" -profile '/var/www/Tools/public/sRGB.icm' -type 'TrueColor' -thumbnail '2048x1251' -density '36.8x36.8' -units 'PixelsPerCentimeter' -crop 1598x1230+225+11 -write mpr:big ...
by laurens_at_hol
2013-10-15T05:09:50-07:00
Forum: Users
Topic: Problem escaping parentheses
Replies: 9
Views: 4997

Re: Problem escaping parentheses

Yes Bonzo, I build the commandstring that is used in the exec() call in the variable $str. But in my debugging process I did some very simple tests where exec() is not used at all. The tests I described with logging a simple string. Nothing else is done. The string I use is with double backslashes ...
by laurens_at_hol
2013-10-15T04:48:56-07:00
Forum: Users
Topic: Problem escaping parentheses
Replies: 9
Views: 4997

Re: Problem escaping parentheses

I'm not sure what you mean Bonzo. When I run this on CentOS $str = "\\"; error_log($str); // output in error log is "\\" When I run this on Max OSX $str = "\\"; error_log($str); // output in error log is "\" When I run this on CentOS $str = "\\"; error_log(var_export($str, true)); // output in error ...
by laurens_at_hol
2013-10-15T04:12:16-07:00
Forum: Users
Topic: Problem escaping parentheses
Replies: 9
Views: 4997

Re: Problem escaping parentheses

I can't find why it is not working in the CentOS environment. I did a trivial test on CentOS: $str = "\\"; error_log($str); // output in error log is "\\" $str = "\\"; error_log(stripslashes($str)); // output in error log is "" (empty string) I thought it could have something to do with magic quotes ...
by laurens_at_hol
2013-10-15T03:24:25-07:00
Forum: Users
Topic: Problem escaping parentheses
Replies: 9
Views: 4997

Problem escaping parentheses

Hi, I'm having some problems with parentheses in a convert command string. In a php script I build a string with imagemagick convert commands. This string is used in a php exec() call. The string contains parentheses to group some commands. I know I have to escape the parentheses with a backslash to ...
by laurens_at_hol
2013-09-26T07:56:50-07:00
Forum: Users
Topic: Please help me optimize my convert command string
Replies: 7
Views: 3564

Re: Please help me optimize my convert command string

Using -density 150 instead of -resample 150 is about 10% faster. I still need the -thumbnail 827x827 to resize the image.
PhotoShop still recognizes the 150dpi without the use of -resample.

I also tested -define jpeg:size=827x827, that is less than 1% faster. I'm not sure if I will be using that.
by laurens_at_hol
2013-09-26T06:15:29-07:00
Forum: Users
Topic: Please help me optimize my convert command string
Replies: 7
Views: 3564

Re: Please help me optimize my convert command string

@snibgo I do the resample and thumbnail because I want the photo in the middle to be exactly 14x14cm with resolution of 150 dpi. Is there another (better) way to achieve this? Can it be done by using only one command? I did some tests with read modifiers, but didn't get good results. I think I won't ...
by laurens_at_hol
2013-09-25T07:06:08-07:00
Forum: Users
Topic: Please help me optimize my convert command string
Replies: 7
Views: 3564

Re: Please help me optimize my convert command string

Hi snibgo, thanks for your reply. I tried your modified command and it gives me about 11% speed improvement. I also changed the colornames to hashcodes. That pushed it to 13% speed improvement. I think 13% is quite an improvement, so that's great. I noticed you changed the settings for the rounded ...
by laurens_at_hol
2013-09-25T02:47:36-07:00
Forum: Users
Topic: Please help me optimize my convert command string
Replies: 7
Views: 3564

Please help me optimize my convert command string

Hi, I'm working on a convert command that takes a random photo, resizes it to a fixed size, creates rounded corners and puts a black background behind it. The rounded corners part is from the examples from the ImageMagick website. I'm not sure this is the best way to do it, but at least it is all ...
by laurens_at_hol
2013-06-05T06:26:05-07:00
Forum: Users
Topic: Missing Profile for sRGB images.
Replies: 2
Views: 3422

Missing Profile for sRGB images.

I use -profile with this file sRGB_IEC61966-2-1.icm to make sure the output file, of the converts my program does, always has the sRGB color profile. Recently I tried to update my ImageMagick installation from 6.7.3.-7-Q16-windows-x64 to 6.8.5-9-Q16-windows-x64 After updating and testing I ran into ...
by laurens_at_hol
2012-11-02T07:31:49-07:00
Forum: Users
Topic: How to extend an image with stretched edges?
Replies: 1
Views: 3896

How to extend an image with stretched edges?

I'm working on a tool that can do several operations on an image. Earlier I was able (with the help of this forum) to create an operation that adds mirrored edges to an image. In that topic http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=22071 I also asked some questions on creating ...