Revision 221

Date:
2012/06/22 14:59:52
Author:
ahitrov
Revision Log:
CMYK -> RGB

Files:

Legend:

 
Added
 
Removed
 
Modified
  • koi8/core/lib/Contenido/File.pm

     
    233 233 rename $filename_tmp.'.'.$ext, $filename_tmp.'.'.$image_info->{file_ext};
    234 234 $ext = $image_info->{file_ext};
    235 235 }
    236 if ( $image_info->{color_type} eq 'CMYK' ) {
    237 rename $filename_tmp.'.'.$ext, $filename_tmp.'.cmyk.'.$ext;
    238 my $c_line = $state->{'convert_binary'}.' -colorspace RGB -quality 100 '.$filename_tmp.'.cmyk.'.$ext.' '.$filename_tmp.'.'.$ext;
    239 `$c_line`;
    240 unlink $filename_tmp.'.cmyk.'.$ext;
    241 }
    236 242 my $transformed;
    237 243 if ( exists $prop->{transform} && ref $prop->{transform} eq 'ARRAY' && scalar @{$prop->{transform}} == 2 && $prop->{transform}[0] =~ /(crop|resize|shrink)/ ) {
    238 244 my $c_line;