The original plugin was not able to do a screen clipping/cropping. When SketchUp exports images of the current view, they always include the whole viewport. But you can set the pixel dimensions of the image.
If someone really needs all the options of the original plugin, it is still downloadable. Otherwise you create a toolbar button with a code snippets using ToolbarEditor. This is much easier to support, and it is easier to adapt to your specific needs.
This snippet asks for the file name and image dimensions. If you choose a filename with png or tif, the image will have transparency.
model = Sketchup.active_model
view = model.active_view
ro = model.rendering_options
filepath = UI.savepanel("Save Image File", nil, "BMP|*.bmp;|JPG|*.jpg;*.jpeg|PNG|*.png|TIF|.*tif;*.tiff|TGA|*.tga||")
width, height = UI.inputbox(
["width", "height"],
[view.vpwidth, view.vpheight],
"Size of the screenshot")
unless filepath.nil? || width.nil? || height.nil?
is_transparent = filepath[/\.(png|tiff?)$/i]
if is_transparent
drawGround, ro["DrawGround"] = ro["DrawGround"], false
drawHorizon, ro["DrawHorizon"] = ro["DrawHorizon"], false
end
keys = {
;filename => filepath,
;width => width,
;height => height,
;antialias => true, # or false
;compression => 0.9, # Only for jpeg
;transparent => true # Only for png
}
begin
raise unless view.write_image(keys)
Sketchup.status_text = "A snapshot has been saved as #{filepath}."
rescue Exception => e
Sketchup.status_text = "Failed to save snapshot to #{filepath}. #{e.message}"
end
if is_transparent
ro["DrawGround"] = drawGround
ro["DrawHorizon"] = drawHorizon
end
end