Skip to content

ddmnet/Thumbnailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Thumbnailer

##Overview Provided a path to an image, allows a user to scale that image to a specified width while maintaining the aspect-ratio.

##Methods

Thumbnailer.scale(sourcePath, pxWide, shouldOverwrite, callbackFunction)

Scales an image to a specified width while preserving the aspect-ratio. The scaled images a stored in Library/Caches/thumbnailer_image_cache by default.

  • sourcePath: The path to the source image
  • pxWide: The desired width of the scaled image
  • shouldOverwrite: Whether or not an existing thumbnail of the same name should be overwritten
  • callbackFunction: Will return the thumbnail image's full path if successfull, otherwise false

Thumbnailer.deleteAllImages()

Removes the thumbnailer_image_cache directory and its contents.

About

PhoneGap plugin that allows images to be scaled.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published