Skip to content

Conversation

@cosimo
Copy link

@cosimo cosimo commented Jun 18, 2013

Going to try this in production today.

Cosimo Streppone and others added 11 commits June 7, 2013 15:35
Easier to troubleshoot in case of wrong redirects,
or plain origin server errors.
We use(d) these operations for My Opera and Discover.
Sadly, I don't remember what was the problem anymore.
Refers to our internal commit 39fc429258dcc76554d015a286105289b18487b0.
Useful when converting PNG pictures to JPEG and at the
same time changing the default black color.

Maybe we could sample the picture colors and decide
a suitable background color too.
It's necessary to apply the background filter early
in the URL chain. If you define a URL like:

    /resize/240x>/background/red/

then the picture will result with a red background
but it will be the original size. I'm not familiar enough
with ImageMagick to understand why at this point, so
just put your background filter at the beginning.

    /background/grey/resize/240x>/

This will work.
Conflicts:
	src/mod_dims.c
	src/mod_dims.h
	src/mod_dims_ops.c
In ImageMagick 6.8.5, there's no ParseMagickOption(). That function
was renamed to ParseCommandOption().

http://trac.imagemagick.org/changeset/4281/ImageMagick/trunk/magick/image.c
Should be the same as doing MAGICK_THREAD_LIMIT, but
done at module initialisation time rather than at request time.
@cosimo
Copy link
Author

cosimo commented Jun 26, 2013

It's working :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant