开发者

Drupal: is there a marker for the cropping functionality?

is there any开发者_高级运维 way to add a visual marker for cropping using the cropping field in Drupal ?

(I'm using Imagefield Crop module)

Something like this: http://www.scrappintwins.com/zencart/images/large/cindy_minear_tile_overlay_s.jpg

on top of the uploaded image ready to be cropped by the dragging area.

thanks


I think you can use the following plugin http://devgrow.com/griddy-overlay/ to dynamically add a grid on top of any <img> . Using jquery selectors you can select the correct element. The plugin has many configurable options:

  • rows (#, default = 10, use 0 to disable)
  • rowheight (px, default = 0 [auto])
  • rowgutter (px, default = 20)
  • columns (#, default = 4, use 0 to disable)
  • columnwidth (px, default = 0 [auto])
  • columngutter (px, default = 20) color (hex, default = #ccc)
  • opacity

So that you can get the grid exactly with the correct number of rows, columns and widths/heights.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜