Home > Modules >
Example: Video Embed for YouTube/Vimeo
Module Class Name
Use upper and lowercase, like this: TextformatterVideoEmbedFor admin themes or site profiles, make this the same as the title, but with no spaces.
SummaryThis module provide basic Imagemanipulations for PageImages or Imagefiles
! FOR PW > 2.5.11+ and PW 3+, ONLY USE PageImageManipulator 2 !
A short description of what this module does (max 1 paragraph). No markup or links.You can enter a detailed description later if you want to.
Current Module Version
Example: 1.0.2If your project is hosted at GitHub, this version number will be automatically kept up-to-date (once per day, or whenever you submit this form).
Categories (check all categories that apply)
ProcessWire Version Compatibility
Check all versions this module is known to be compatible with.
All of these URLs are required before your module will be published in the directory. If you have not yet posted a forum thread about your module in the ProcessWire forums, please do so now.
Project URL (use GitHub URL if available)
Download URL (preferably a link directly to a ZIP file)
Forum Thread URL (in the ProcessWire forums)
If your project is hosted at GitHub, your README file will be automatically displayed with your module listing. If you want to provide additional information beyond that, or if your project is not hosted at GitHub, please complete the Extended Module Description and/or Instructions fields below. In these fields, you may optionally use BBCode for formatting. For example:
[b]bold[/b] [i]italic[/i] [u]underline[/u] [url=http://domain.com]link text[/url][code]Code Example[/code] [img]http://domain.com/image.jpg[/img] [list] [*]Entry 1 [*]Entry 2 [/list]
Extended Module Description (optional)[b][size=5]How does it work?[/size][/b]
You can enter the ImageManipulator by calling the method [color=#add8e6][b]pimLoad()[/b][/color]. After that you can chain together how many actions in what ever order you like. If your manipulation is finished, you call [b][color=#add8e6]pimSave()[/color][/b] to write the memory Image into a diskfile. [color=#add8e6][b]pimSave()[/b][/color] returns the PageImage-Object of the new written file so we are able to further use any known PW-image property or method. This way it integrates best into the ProcessWire flow.
The three examples above put out the same visual result: a grayscale image with a width of 240px. Only the filenames will slightly differ.
You have to define a [color=#008000]name-prefix[/color] that you pass with the pimLoad() method. If the file with that prefix already exists, all operations are skipped and only the desired PageImage-Object gets returned by pimSave(). If you want to force recreation of the file, you can pass as second param a boolean true: [color=#add8e6][b]pimLoad([/b][/color][color=#008000]'myPrefix'[/color], [b][color=#ffa500]true[/color][color=#add8e6])[/color][/b].
You may also want to get rid of all variations at once? Than you can call [b][color=#808080]$pageimage->[/color][color=#add8e6]pimLoad([/color][/b][color=#008000]'myPrefix'[/color][b][color=#add8e6])[/color][color=#808080]->[/color][color=#ff8c00]removePimVariations()[/color][/b]!
A complete list of all methods and actions are [url=http://processwire.com/talk/topic/4264-release-page-image-manipulator/]available here[/url].
You may also visit the post with [url=http://processwire.com/talk/topic/4264-release-page-image-manipulator/#entry41748]tips & examples[/url].
Instructions (optional, how to install and use this module)
If left blank, ProcessWire's standard module installation instructions will be shown.
Author's Forum Name (1-word per author, as it appears the ProcessWire forum)
This is so that we can link with your forum profile. If there are multiple authors, separate each by a space. If an author name actually has a space in it, then replace the space with a hyphen. If you don't have an account in the forum, you can create one here.
When you created this module page, you were asked to select an email address and password to authenticate future edits. Please enter them below. If you lost your password for this module, you can retrieve it here.
Password Please note that these passwords are not encrypted! Choose something you've never used before and won't ever use elsewhere.
Go to the forums
Follow us on Twitter
ProcessWire.com is powered by Amazon Web Services
with servers managed by Perago Solutions.
ProcessWire Open Source CMS © 2019 by Ryan Cramer Design, LLC • Contact Us