Giter Club home page Giter Club logo

deepzoom's Introduction

Latest Version on Packagist Tests Scrutinizer Code Quality Total Downloads


Deepzoom

Tile Generator for use with OpenSeadragon.

https://openseadragon.github.io/

Example implementation -

  // Setup Deepzoom
  $deepzoom = Jeremytubbs\Deepzoom\DeepzoomFactory::create([
      'path' => 'images', // Export path for tiles
      'driver' => 'imagick', // Choose between gd and imagick support.
      'format' => 'jpg',
  ]);
  // folder, file are optional and will default to filename
  $response = $deepzoom->makeTiles('KISS.jpg', 'file', 'folder');

Example response -

{
  status: "ok",
  data: {
    output: {
      JSONP: "folder/file.js",
      DZI: "folder/file.dzi",
      _files: "folder/file_files"
    },
    source: "source/file/path"
  },
  message: "Everything is okay!"
}

Supported Image Libraries

  • GD Library (>=2.0)
  • Imagick PHP extension (>=6.5.7)

FYI:

Filenames for JSONP must not start with a number and should not contain hyphen therefore filename spaces and hyphens will be converted to underscores. Folder name spaces will be converted to hyphens. If you would like to avoid this auto-naming declare your 'folder' and 'file' within the maketiles method.

deepzoom's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar jeremytubbs avatar stefan-korn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

deepzoom's Issues

Allow '-' and '_'

I am wonderring why you disallow '-' and '_' characters on line 261 since these are perfectly normal characters for file name.
I took them out to suit my needs.

Install

Hi Jeremy,

sorry but it seem's I'm to dump to get this running in my ubuntu system :-(
I cloned the repo and run compose install, it creates a vendor dir with all dependencies, but when I try to make a default implementation as you mentioned, I get a 500 error :-/
My root directory has a src dir with your code, a vendor dir with dependencies, I create a index.php with the code you mentioned on your site?

regards
Meex

How to plug this plug-in - what is needed additionally?

I am trying to plug
https://github.com/jeremytubbs/deepzoom
into my PHP project (to create tiles and DZIs on server side after each image is loaded).

Contrary to the plugins I've been using previosly, this one seem not to contain every library it refers to, and there's neither description nor examples of joining any additional files in the readme.
I will appreciate any advice on how to make it work.

Currently I don't know what to do with this in DeepzoomFactory.php:
use InvalidArgumentException;
use Intervention\Image\ImageManager;
use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;

Does it mean that I have to download each of these libraries ( Intervention Image, League Flysystem) additionaly and place each of them into separate folder? I tried to do so, but it still doesn't work.
Do I have to include every ".php" file from this libraries into DeepZoom.php? Seems like I am on the wrong way and missing something about importing namespaces.

Best Regards,
Pavel.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.