Latest Tutorials

Learn about the latest technologies from fellow newline community members!

  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL
  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL

    Exploring the OpenSeadragon JavaScript API: A Beginner's Guide

    OpenSeadragon is an open-source JavaScript library specifically built for displaying images in a high-resolution, zoomable format. It is designed for performance and usability, ensuring viewers can pan, zoom, and interact as if they were holding a magnifying glass over an intricate blueprint. Now that we’ve covered some basics, let’s look at how you can utilize the OpenSeadragon JavaScript API. The first step is to include the OpenSeadragon library in your project. There are various ways to do this. The quickest is to link directly to the CDN.

      OpenSeadragon: How to Implement an Image Comparison Slider

      In today's digital landscape, the presentation of visual content holds paramount importance. Whether you’re a web developer, a graphic designer, or just someone who values high-impact visuals, integrating an effective image comparison tool can elevate your user experience. Enter the OpenSeadragon Image Comparison Slider —a powerful library that does exactly this, allowing users to interactively compare two images, showcasing differences or highlighting changes effectively. OpenSeadragon is an open-source JavaScript library specifically designed for displaying high-resolution images. It enables zooming and panning functionalities that enhance the viewer's experience, particularly when dealing with detailed images like maps, medical scans, or artwork. What sets this library apart is its ability to integrate image comparison sliders, making it a fantastic choice for projects requiring side-by-side image analysis. Image comparison sliders offer a compelling way to present visual differences. They can be particularly beneficial in fields such as:

      I got a job offer, thanks in a big part to your teaching. They sent a test as part of the interview process, and this was a huge help to implement my own Node server.

      This has been a really good investment!

      Advance your career with newline Pro.

      Only $40 per month for unlimited access to over 60+ books, guides and courses!

      Learn More

        OpenSeadragon: Check if Image is Rotated

        OpenSeadragon is a powerful JavaScript library that allows you to display high-resolution images in a web browser. It's especially popular for applications in digital museums, art galleries, and any use case that requires detailed views of images. One common challenge users may encounter is determining whether an image has been rotated. In this blog post, we’ll explore how to check if an image displayed in OpenSeadragon is rotated. When working with images, particularly those captured by smartphones or digital cameras, it's essential to understand that they may store orientation information within their metadata. This means that even if an image appears upright in a viewer, it could be technically rotated based on its metadata. OpenSeadragon doesn't automatically adjust the orientation of images based on their metadata, so you’ll need to handle this manually.

          OpenSeadragon: Implementing Image Zooming and Panning in Pure JavaScript

          In web development , creating interactive visualizations can be a huge boon for engagement. OpenSeadragon, an open-source JavaScript library, facilitates smooth image zooming and panning. Here, we'll explore how to implement OpenSeadragon using pure JavaScript, taking you through practical examples to get started quickly. OpenSeadragon is a powerful library designed to display high-resolution images on the web. It allows users to zoom in on images smoothly, providing detailed views without sacrificing performance. This library was built with the needs of users in mind, as you can integrate it into your projects with minimal fuss. Before we dive into code, ensure you have the OpenSeadragon library included in your project. You can do this by adding a script tag to your HTML:

            Understanding OpenSeadragon Constructor Options

            OpenSeadragon is a powerful open-source JavaScript library that facilitates the viewing of large images in a zoomable interface, making it ideal for applications where high-resolution images are pivotal. Utilizing OpenSeadragon in your projects allows you to enhance user experiences with smooth and responsive image navigation. In this article, we will explore the constructor options available in OpenSeadragon. Constructor options allow you to customize the viewer to your specific needs, improving usability, and enhancing functionality. When initializing an OpenSeadragon viewer, you pass a configuration object, including various options tailored to your application. Below is the basic syntax used to create a viewer: