Closed (works as designed)
Project:
ImageMagick Raw Effect
Version:
6.x-1.2
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2008 at 18:53 UTC
Updated:
9 Apr 2009 at 03:48 UTC
Comments
Comment #1
adrinux commentedYou just need the command line options, convert is called by imageapi, so drop convert and try:
"-format jpg"
Comment #2
adrinux commentedAlso look at "admin/settings/imageapi/config" and see if you have 'Display debugging information' checked, if you'd seen the error messages it would have been obvious what was going wrong :)
Closing this, open it again if you still have problems.
Comment #3
nbayaman commentedThanks guys for your answers, but i still got the problem.
Here is the IM options i have put. The first one works as it should, but the "-format jpg" does nothing, the resulting thumbnail image still turns out as png file...
And i turned on debugging mode, still no error... any mysticism here? :)
Comment #4
adrinux commentedError messages: you might need devel module installed too. And often the error doesn't seem to appear until you refresh or visit another page. hth
Keep in mind that imageapi smooshes all these actions together and adds the quality setting when calling convert, so the final command would be something like:
Which prompts several thoughts:
* I consider this a feature, get your transformations working on the command line, then shift them into drupal.
Comment #5
adrinux commentedAs per 2. above, I think this problem is nothing to do with im_raw module as such. Closing.
Comment #6
nbayaman commentedHi guys.
I ported my site to 6th Drupal, and again found a will to change the image formats (due IE bugging with png files). And followed #2, and i would say that convert changes format only in that case if I explicitly point the output file's format i.e.: convert inputfile.png -format jpg outputfile.jpg, and this is indeed an image in JPEG format.
So i'm here again, to find out, how does this module handles filenames? Is there any chance that -format option has any deal with output filename?
Thanks :)
Comment #7
adrinux commentedIn short im_raw doesn't handle file names. That's all dealt with by imageAPI.
See http://api.freestylesystems.co.uk/api/file/contributions/imageapi/imagea...
and also note that other people have problems and are looking for solutions:
http://drupal.org/node/375218
Basically the act of opening and closing a file is dealt with by imageAPI as is the name of the input and output files.
im_raw is is dependent on imagecache and imageAPI, such that anything you put in an im_raw action is fed through those modules:
filesystem < imageAPI < imagecache < im_raw
Entering format and output file names as an im_raw action probably results in them being passed to imagemagick, and imagemagick may well process them without errors (they are legitimate commands after all!), but that doesn't mean drupal and imageapi know what imagemagick has been doing, and where or what the output file is. The problem needs to be fixed at the level of imageAPI.
Please file a support issue in the imageAPI queue, and reference this thread, maybe someone can explain it more clearly there.
Comment #8
nbayaman commentedThanks mate!