This Image Region plugin is continuation of work on a plugin first created by Uni and further developed by Kay.
http://en.smath.info/for...st1786_Image-Region.aspxhttp://en.smath.info/for...itable-Image-Region.aspxThe plugin is compatible with existing Image Region.
I would like to thank Davide Carpi and Martin Kraska for help with my programming efforts.
Improvements over previous version of Image Region: - Enabled selection between blank file types (previously only a blank .png would be created)
- You can set the size of the blank file by adjusting the dimensions of the region (previously the size of the new image was static)
- Scaling of renders from SVG files created by inkscape is fixed (previously .svg did not scale when region dimensions were changed)
- Copy/paste and Ctrl+c will generate true region clones with a new filename. The copy created can be edited separately from the source region (previously the copy would share the image file with its parent - changes in copied region would reflect in its parent region)
- "Open With..." functionality is implemented
- Image automatically loads when loading .sm workbook or on duplication (previously a blank file would be displayed - needed to click on image to reload)
- Region update on resizing was supressed to speed up re-rendering of SVG
- Implemented in-memory image rotation. Mildly useful when you need to fit landscape image to a portrait page without altering the source file
- Native rendering of PNG, SVG, PDF and PSD allows for display of ANY file format that can export to these four, by hand, to either the TEMP folder in appdata or to the .sm workbook root directory folder.
Support of new file formats:- Workflow of blank file format selection: select extension with right click; double click or "Open With..." - this will create a blank file of your choice on the fly.
Formats supported:- PNG
- SVG
- PSD - New File Type
Native Photoshop file format - outstanding for quick sketches in Paint.NET, if layer support is preferred (image markup). Blank PSD file is created from static Base64 string.
- PDF - New File Type
Surprisingly good for markup / sketches using Bluebeam Revu
- DXF - New File Type - CAD standard
Partial support. DXF file can be saved within SMath workbook like any other format. However the ImageRegion cannot render the DXF. To display sketch in SMath one must export either PNG SVG or PDF file with filename identical to DXF file to the .sm workbook root directory, or Temp directory where DXF is located while .sm workbook is open. Blank DXF file is created from static Base64 string.
- DWG - New File Type - CAD standard
Partial support. DWG file can be saved within SMath workbook like any other format. However the ImageRegion cannot render the DWG. To display sketch in SMath one must export either PNG SVG or PDF file with filename identical to DXF file to the .sm workbook root directory, or Temp directory where DWG is located while .sm workbook is open. Blank DWG file is created from static Base64 string.
- SKP - New File Type - Trimble SketchUp Make 3D file type
Partial support. SKP file can be saved within SMath workbook like any other format. However the ImageRegion cannot render the SKP. To display the sketch in SMath one must export either PNG SVG or PDF file with filename identical to SKP file to the .sm workbook root directory, or Temp directory where SKP is located while .sm workbook is open. Blank SKP file is created from static Base64 string.
- CDR - New File Type - CorelDRAW
Partial support. CDR file can be saved within SMath workbook like any other format. However the ImageRegion cannot render the CDR. To display the sketch in SMath one must export either PNG SVG or PDF file with filename identical to CDR file to the .sm workbook root directory, or Temp directory where CDR is located while .sm workbook is open. Blank CDR file is created from static Base64 string.
Some examples of plugin use:
ImageTestFile.sm (3,925kb) downloaded 185 time(s). ImageTestFile.pt.2.sm (3,418kb) downloaded 134 time(s).Edited by user 24 May 2016 00:34:18(UTC)
| Reason: Not specified