Search found 11 matches

by webdevsoup
2012-08-21T09:49:38-07:00
Forum: Developers
Topic: Memory Allocation Error
Replies: 3
Views: 8856

Re: Memory Allocation Error

Perhaps you need to increase the maximum amount of memory a script may consume for PHP. The default may be as low as 8MB. In our php.ini script file, we use memory_limit = 128M If you cannot increase the limit, set your memory resource limit to say 2MiB (not sure how this is done in IMagick, from ...
by webdevsoup
2012-08-21T09:35:20-07:00
Forum: Developers
Topic: Memory Allocation Error
Replies: 3
Views: 8856

Memory Allocation Error

Hey everyone, question for those of you out there that are geniuses (I'm a newbie to IM). I am running ImageMagick-6.5.4.7-5.el6.x86_64 and CentOS 6.0 Final. When running a script to create thumbnails, I am getting the following errors: exception 'ImagickException' with message 'Memory allocation ...
by webdevsoup
2012-08-13T08:48:58-07:00
Forum: Developers
Topic: Image conversion black becomes aqua
Replies: 15
Views: 21065

Re: Image conversion black becomes aqua

Bonzo wrote:Working on image.psd[0] will only produce one image as it is only working on the one layer.

If you do not use the [0] it will produce an image for every layer.
Bonzo - GOTCHA!!! Thanks! :) I will reply if this works.
by webdevsoup
2012-08-13T08:40:49-07:00
Forum: Developers
Topic: Image conversion black becomes aqua
Replies: 15
Views: 21065

Re: Image conversion black becomes aqua

fmw42 wrote:
PSD files can have multiple layers. Usually the first layer is the flattened image. But you can select any layer Try

image.psd[0] in your code to select the first layer.
The thing is that I cannot store 3 versions of 43,000 images. That just will not be acceptable.
by webdevsoup
2012-08-10T12:22:15-07:00
Forum: Developers
Topic: Image conversion black becomes aqua
Replies: 15
Views: 21065

Re: Image conversion black becomes aqua

Ok, I was able to convert the image using direct paths. However, the image still does not appear black, although it's extremely close. http://www.sfwdesign.com/sites/all/files/test0.png Can it get closer? If not, I'll begin substituting variables for my images. Also, I noticed for this particular ...
by webdevsoup
2012-08-10T11:53:39-07:00
Forum: Developers
Topic: Image conversion black becomes aqua
Replies: 15
Views: 21065

Re: Image conversion black becomes aqua

$local_path is the variable where the image we are converting from is stored. It is a linked folder, linked to /home/opmasan/metaimage/NAME_OF_FOLDER/NAME_OF_MAN/NAME_OF_FILE I changed both locations utilizing a specific path. -profile /usr/include/ImageMagick/Profiles/CMYK\ Profiles/USWebCoatedSWOP ...
by webdevsoup
2012-08-10T11:37:04-07:00
Forum: Developers
Topic: Image conversion black becomes aqua
Replies: 15
Views: 21065

Re: Image conversion black becomes aqua

Perhaps I'm not getting the right code in there: $thumb = '/home/metathumbs/'.$image_data->thumb; $cmd = "$local_path -profile /usr/include/ImageMagick/Profiles/CMYK\ Profiles/USWebCoatedSWOP.icc /usr/include/ImageMagick/Profiles/RGB\ Profiles/sRGB.icc -thumbnail 128x128 -strip "; exec("convert $cmd ...
by webdevsoup
2012-08-10T06:07:13-07:00
Forum: Developers
Topic: Image conversion black becomes aqua
Replies: 15
Views: 21065

Re: Image conversion black becomes aqua

You file is CMYKA Photoshop PSD file with two layers. It is not a vector file such as eps, pdf, ps. IM will convert the file just fine on my IM 6.7.8.8 Q16 Mac OSX SnowLeopard into two PNG images, one for each layer using: convert -colorspace sRGB test.psd -thumbnail 128x128 -strip test_proc.png ...
by webdevsoup
2012-08-09T22:50:33-07:00
Forum: Developers
Topic: Image conversion black becomes aqua
Replies: 15
Views: 21065

Re: Image conversion black becomes aqua

The problem is that this is part of a script that cycles through a MySQL database, and some of the files are .eps files, some are .psd files, and some are .jpg files. I never know which is which. So, I would have to write a try >> catch statement, or if >>> then statement to test the extension of ...
by webdevsoup
2012-08-09T17:45:58-07:00
Forum: Developers
Topic: Image conversion black becomes aqua
Replies: 15
Views: 21065

Re: Image conversion black becomes aqua

I apologize, I'm new to ImageMagick. This was set up by someone else, and I am now maintaining because the other individual took a new job. ImageMagick-6.5.4.7-5.el6.x86_64 Running CentOS 6.0 Final. I converted the image, and now it is turning up a peach-ish color. This is all being done via PHP at ...
by webdevsoup
2012-08-09T15:18:58-07:00
Forum: Developers
Topic: Image conversion black becomes aqua
Replies: 15
Views: 21065

Image conversion black becomes aqua

Utilizing IMagick commands, we are running some thumbnail commands on .psd, .eps, and .jpg files to convert them to .png. However, some of the images are giving us a problem where the black color becomes an odd aqua color. I have an image example of before: http://www.sfwdesign.com/sites/all/files ...