}
MagickExport Image *CropImageToTiles(const Image *image,
- const char *crop_geometry, ExceptionInfo *exception)
+ const char *crop_geometry,ExceptionInfo *exception)
{
Image
*next,
}
delta.x=(double) width/geometry.width;
delta.y=(double) height/geometry.height;
- if ( delta.x < 1.0 ) delta.x = 1.0;
- if ( delta.y < 1.0 ) delta.y = 1.0;
+ if (delta.x < 1.0)
+ delta.x=1.0;
+ if (delta.y < 1.0)
+ delta.y=1.0;
for (offset.y=0; offset.y < (double) height; )
{
if ((flags & AspectValue) == 0)
ClearMagickException(exception);
return(crop_image);
}
-
if (((geometry.width == 0) && (geometry.height == 0)) ||
((flags & XValue) != 0) || ((flags & YValue) != 0))
{
crop_image->page.y-=geometry.y;
}
return(crop_image);
- }
+ }
if ((image->columns > geometry.width) || (image->rows > geometry.height))
{
RectangleInfo
geometry=SvPV(ST(i),na);
break;
}
- if (LocaleCompare(attribute,"gravity") == 0)
- {
- Image
- *next;
-
- ssize_t
- in;
-
- in=!SvPOK(ST(i)) ? SvIV(ST(i)) : ParseCommandOption(
- MagickGravityOptions,MagickFalse,SvPV(ST(i),na));
- if (in < 0)
- {
- ThrowPerlException(exception,OptionError,"UnrecognizedType",
- SvPV(ST(i),na));
- return;
- }
- for (next=image; next; next=next->next)
- next->gravity=(GravityType) in;
- break;
- }
ThrowPerlException(exception,OptionError,"UnrecognizedAttribute",
attribute);
break;