Skip to content
This repository

A free, portable photo editor focused on performance and usability. Macro recording and batch processing are key features. English, Dutch, French, German, and Italian translations included.

branch: master

Get Image -> Crop to Selection working with layers

I've been dreading this, but it ended up being a great chance to revisit
some old code, written before PD switched to its current "always
premultiply alpha" approach.  Because of that, I was able to not only
get Crop to Selection working with layers, but also to greatly improve
the performance of cropping in general, as well as retrieving a chunk of
the image as processed by a selection (yay!).

Note that cropping an image to a selection may cause some layers to
become fully transparent, if they lie off completely off the selection.
So it's not a bug if layers suddenly don't have thumbnails after the
operation.
latest commit 8552e4781f
Tanner authored
Octocat-spinner-32 App Update FreeImage with my ICO/PNG page patch March 25, 2014
Octocat-spinner-32 Classes Get Image -> Crop to Selection working with layers April 15, 2014
Octocat-spinner-32 Controls Layer names can now be edited by double-clicking April 11, 2014
Octocat-spinner-32 Docs Documentation update March 13, 2014
Octocat-spinner-32 Forms Remove Image -> Isometric menu April 15, 2014
Octocat-spinner-32 Modules Get Image -> Crop to Selection working with layers April 15, 2014
Octocat-spinner-32 Resources Rewrite Paste support to account for layers April 13, 2014
Octocat-spinner-32 Support Lots of translation-related fixes and updates February 25, 2014
Octocat-spinner-32 .gitattributes Force Windows EOL formatting August 01, 2012
Octocat-spinner-32 .gitignore Ignore Macros user folder when syncing February 21, 2014
Octocat-spinner-32 Donate to PhotoDemon.url Update donation URL March 13, 2014
Octocat-spinner-32 PhotoDemon.vbp Get Image -> Crop to Selection working with layers April 15, 2014
Octocat-spinner-32 README.md Layers can now be added to an image March 30, 2014
README.md

PhotoDemon 6.4 beta

PhotoDemon Screenshot

PhotoDemon is a portable photo editor focused on performance and usability.

It provides a comprehensive selection of photo editing tools in a tiny 7 MB download. It runs on any Windows machine (XP through Win 8.1) and does not require installation. It can easily be run from a portable USB drive or SD card. English, Dutch, French, German, Italian, Portuguese, and Spanish translations are currently provided.

PhotoDemon is written in VB6. (Don't laugh until you've tried it - its performance will surprise you!) Outside contributions from both coders and translators are always welcome.

For information on the most recent official release, please visit: http://photodemon.org

Finally, note that PhotoDemon's GitHub repository does not contain a compiled EXE. If you don't have access to a VB6 compiler, you can download a compiled .exe (including language files and core plugins), updated nightly, from: http://photodemon.org/downloads/nightly/PhotoDemon_nightly.zip


What makes PhotoDemon unique?

It is lightweight and completely portable

PhotoDemon is designed to be run as a standalone program. No installer is provided or required. It does not touch the Windows registry, and aside from a temporary file folder – which you can specify in the Options dialog – it leaves no trace of itself on your hard drive. Many people choose to run PhotoDemon from a USB drive. It will run on any Windows machine from XP through Windows 8.1.

It integrates macro recording and batch processing

Complex editing actions can be automated by recording them as macros (similar to Office software). Once recorded, any combination of actions can be automatically applied to other images. Macros fully integrate with a built-in batch processing tool – simply choose a saved macro and a folder or list of images, and PhotoDemon will apply the macro to every image automagically.

It emphasizes usability

Most free, open-source image editors are usability nightmares. PhotoDemon tries not to be. The interface was built by designers, not engineers, and small touches like save/load presets on all tools, automatic last-used settings preservation, unlimited Undo/Redo, "Fade last effect", keyboard accelerators, effect previews, mouse wheel and forward-back button support, and descriptive menu icons make PhotoDemon easy to use for both novices and professionals.

It provides a comprehensive selection of pro-grade features and tools

  • Extensive file format support, including all major RAW formats (via LibRaw).
  • Powerful selection tools, with full support for antialiasing, feathering, and on-canvas sizing/moving.
  • Fully color-managed workflow, including support for embedded ICC profiles.
  • 2D transformations: advanced resize (Sinc, Catmull-Rom, etc), content-aware scaling, crop (including autocrop), rotate, shear, tiling.
  • Pro adjustment tools: levels, curves, white balance, shadow/highlight correction, grayscale, sepia, full-featured histogram, green screen, Wratten filters, and many more.
  • Filters and effects: content-aware blur, unsharp masking, edge detection, noise removal, lens diffraction, vignetting, perspective correction, film grain, and many more.
  • 100+ tools are provided in the current build, plus a custom filter tool that allows you to construct your own convolution filters.

What doesn't PhotoDemon do?

  • The latest stable release (6.2) does not support layers. The latest development release has some layer features working, and full layer support is being actively developed. (Seriously, check the commit log!)
  • PhotoDemon does not provide any on-canvas painting tools. Many have been prototyped, but their integration has been postponed pending a final layers implementation.
  • PhotoDemon (probably) does not run on non-Windows operating systems. Wine (http://www.winehq.org/) finally added full DIB support in March 2012. Because PhotoDemon relies heavily on DIB sections, it may work on OSX, Linux, BSD, Solaris or Maemo systems with Wine v1.4 or later.

How can I get involved?

PhotoDemon is written and maintained by a single individual with a family to support. The program is provided free-of-charge under an extremely permissive open-source license, and no fees or money will ever be charged for its use.

That said, donations go a long way toward supporting the development of this powerful photo editing tool. If you would like to donate and support development, please visit:

http://photodemon.org/donate/

While I can't make any promises, I have been known to give extra attention to feature requests from individuals who donate.

If you can't contribute monetarily to the project, here are other ways to help:

  • Let me know if you find any bugs. Issues can be submitted via PhotoDemon's github page: https://github.com/tannerhelland/PhotoDemon, or this dedicated PhotoDemon feedback form: http://photodemon.org/about/contact/
  • Are you a VB6 coder? I'm always open to outside bug fixes and feature implementations from fellow programmers.
  • Tell friends, family, and other websites about PhotoDemon. If you know a site that tests or reviews image processing tools, email and ask if they've tried it.
  • Send me an email and let me know how you use PhotoDemon. I love to hear from users. Get in touch at http://photodemon.org/about/contact/

How is PhotoDemon and its source code licensed?

PhotoDemon is released under a BSD license. You may read more about this license at the following location: http://creativecommons.org/licenses/BSD/. A full copy of this license is included at the bottom of this section.

Sections of this source code were written by third-parties and may be subject to additional licenses. Documentation within a specific source code file supercedes the BSD license governing this project as a whole.

Questions regarding licensing should be directed to: http://photodemon.org/about/contact/

Full text of BSD license follows.

Copyright (c) 2014, Tanner Helland and Contributors. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Who has contributed to PhotoDemon's development?

PhotoDemon would not be possible without the help of many talented contributors, including...

Something went wrong with that request. Please try again.