New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@grapecity/gcimageviewer

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grapecity/gcimageviewer

Document Solutions Image Viewer

  • 7.0.3
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-23.33%
Maintainers
2
Weekly downloads
 
Created
Source

Document Solutions Image Viewer

A JavaScript Image viewer and editor that comes with Document Solutions for Imaging.

Document Solutions Image Viewer (GcImageViewer) is a fast modern JavaScript based image viewer and editor that runs in all major browsers. The viewer can be used as a cross platform solution to view or modify images on Windows, MAC, Linux, iOS and Android devices. GcImageViewer is included in Document Solutions for Imaging, a feature-rich cross-platform Image API library for .NET.

GcImageViewer provides a rich client side JavaScript object model, see docs/index.html for the client API documentation.

Product highlights:

  • Works in all modern browsers including IE11, Edge, Chrome, FireFox, Opera, Safari.
  • Works with pure JavaScript and frameworks such as Angular, Vue, ASP.NET Core, ASP.NET MVC, HTML5, React and Preact.
  • Allows you to extend the viewer behavior and add new functionality using plug-ins.
  • Provides a client API for creating and modifying image data.
  • Supports raster image formats JPEG, PNG, WEBP, TIFF, GIF, BMP, ICO, and vector SVG format.
  • ...and more.

See it in action

  • Go to Document Solutions Image Viewer demos to explore the various features of GcImageViewer. The demo site allows you to modify the demo code and immediately see the effect of your changes.
  • The Document Solutions for Imaging demos can optionally use GcImageViewer to show the sample images (to opt in or out of using GcImageViewer, click the blue "i(nformation)" icon in the top right corner of the image preview panel).

Latest changes

Important note for users of the @grapecity/gcimageviewer package

  • The @grapecity/gcimageviewer package is being renamed and will be continued to be maintained under the new name @mescius/dsimageviewer. The new package provides the same functionality, ensures future enhancements, and is backwards compatible with @grapecity/gcimageviewer. Please update your references to avoid any possible future interruptions. Your existing licenses will continue to work with the new package.

[7.0.3] - 19-Feb-2024

Fixed

  • After using the removePlugins API an exception is thrown if an image filter is used. (DOC-6043)
  • The paint tools display is incorrect after the image is rotated. (DOC-5603)
  • In image filters preview mode, the display is incorrect after zooming the image in and out by mouse. (DOC-5627)
  • The default value of 100% for clone stamp opacity does not take effect. (DOC-5625)
  • After using the removePlugins API the paint tools icon is still displayed. (DOC-5648)
  • [iOS] There are some issues with the horizontal scrollbar. (DOC-4868)

[7.0.2] - 25-Jan-2024

Fixed

  • Display error when zooming while using image filters. (DOC-5989)
  • Saving a selection produces a black image. (DOC-5748)
  • Selection tools' prompts are inconsistent. (DOC-5755)
  • [iOS] Image filters do not work. (DOC-5537)

[7.0.1] - 04-Jan-2024

Fixed

  • The second toolbar of an image filter is still displayed when the image filter is folded. (DOC-5968)
  • An unexpected black area appears after an image is rotated. (DOC-5753)

[7.0.0] - 07-Dec-2023

Added

  • Added DsImageViewer class and "@mescius/dsimageviewer" package. Functionally DsImageViewer is identical to GcImageViewer. (DOC-5736)
  • Brightness filter. (DOC-5656)
  • Contrast filter. (DOC-5657)
  • Selection tool, used for cut/copy/paste operations and for applying other tools to selection only. (DOC-5658)

Changed

  • [Paint tools] The "Use original image" toggle now only applies to the eraser tool; for other tools this option is disabled and ignored.
  • Improvements to image filters' UI and functionality.
  • Some tooltips updated.

Fixed

  • Miscellaneous bug fixes.

[1.2.5] - 22-Nov-2023

Fixed

  • An unexpected blank toolbar appears after clicking "Toggle FullScreen". (DOC-5768)

[1.2.4] - 27-Oct-2023

Fixed

  • Transparent background becomes solid gray when using the text tool. (DOC-5626)

[1.2.3] - 28-Sep-2023

Fixed

  • [Windows Touch] Zooming by hand does not work. (DOC-5712)

[1.2.1] - 17-Aug-2023

Fixed

  • Improved layout in full screen mode. (DOC-5599)
  • Some text is not visible when using the text tools. (DOC-5489)
  • [iOS] The expand button of the second toolbar is not visible. (DOC-5617)

[1.2.0] - 1-Aug-2023

Fixed

  • Thumbnail image can be dragged to the viewer area. (DOC-5497)
  • Several issues with the image filter plugin when using different themes. (DOC-5453)
  • [iOS] Zoom factor jitter during two finger pinch gesture. (ARF-4244)
  • Miscellaneous UI/behavior improvements.

Added

  • Paint tools plugin (pencil, brush, clone stamp, eraser). (DOC-4973, DOC-4975)
  • Text tools plugin. (DOC-4974)
  • Added vibrance and saturation to image filters plugin. (DOC-4971, DOC-4972)
  • Added "Save changes" confirmation prompts.
  • Added imageQuality option: used for image formats that use lossy compression, such as JPEG and WEBP. The value should be a number between 0 and 1, where 0 represents the lowest, and 1 the highest quality. If this option is not specified, the default value of 0.92 is used. Please note that this option only affects image editing capabilities.
    // Example:
    var viewer = new GcImageViewer("#root", {
      // Set image quality to 50%:
      imageQuality: 0.5
    });
    

[1.1.5] - 11-Jul-2023

Fixed

  • Incorrect display of ICO images with Rgb15 frame encoding. (DOC-5084)

[1.1.3] - 31-May-2023

Fixed

  • The expand toolbar of second toolbar is not visible in the theme "dark". (DOC-5340)
  • Can not add image filter plugin to left side bar again if it was added and removed before. (DOC-5328)
  • Add new PageToolsPlugin will affect old PageToolsPlugin. (DOC-5325)
  • The ellipsis button should be hidden for PageTools/ImageFilters toolbars. (DOC-5371)

[1.1.0] - 03-Apr-2023

Added

  • Added keyboard shortcuts: Undo/Redo: Ctrl+Z/Ctrl+Y, Rotate: R/Shift+R, Zoom-in/Zoom-out: Ctrl++/Ctrl+-, Zoom to 100%: Ctrl+0, File open: Ctrl+O.
  • [Crop/resize tools] Keyboard shortcuts: Ctrl+Enter to apply changes, Esc to cancel.
  • [Resize tool] Press and hold Shift to temporarily toggle the 'keep aspect ratio' setting.
  • Added the ability to specify a custom renderer function for the second toolbar layout.
  // Example:
  viewer.secondToolbarLayout["hello-world-toolbar-key"] = (toolbarKey: string) => {
      return [<div>Hello world, second toolbar key is {toolbarKey}</div>];
  };
  viewer.showSecondToolbar("hello-world-toolbar-key");

Changed

  • Crop/resize tools improved (got rid of popup dialogs, toolbars changed). (DOC-4970)

Fixed

  • [Image Filters Plugin] Clicking custom image filter plugin has no effect. (DOC-5329)
  • [Page Tools Plugin] After several rotations unexpected white space appears. (DOC-5330)
  • Miscellaneous minor fixes.

See CHANGELOG.​md for previous release notes.

Installing and using the viewer

Installing from npmjs:

npm install @grapecity/gcimageviewer

Installing from the zip archive:

The following viewer distribution files are located in the zip archive:

  • build/README.md (this file)
  • build/CHANGELOG.md
  • build/index.html
  • build/gcimageviewer.js
  • build/plugins/ (optional) Plugins
  • build/themes/ (optional) Theme files
  • build/typings/ (optional) Type definitions

Copy those files to an appropriate location accessible from the web page where the viewer will live, e.g. if the files are put in the directory where the web page is, the following HTML can be used to show the viewer:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="theme-color" content="#000000" />
    <title>Document Solutions Image Viewer Demo</title>
    <script src="gcimageviewer.js"></script>
    <script src="plugins/rotation.js"></script>
    <script>
      function loadImageViewer(selector) {
        var viewer = new GcImageViewer(selector);
        viewer.addPlugin(new RotationPlugin());
      }
    </script>	
  </head>
  <body onload="loadImageViewer('#root')">
    <div id="root"></div>
  </body>
</html>

The End.

Keywords

FAQs

Package last updated on 20 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc