PastedIn

Beskrivelse

PastedIn adds a third tab, Paste an image, after Upload files and Media Library in the native media picker. It also provides a dedicated Media > PastedIn screen.

Copy an image or take a screenshot, paste it, make quick non-destructive edits, choose the output format and media details, and save one normal WordPress attachment.

What makes PastedIn different?

PastedIn combines clipboard capture, non-destructive adjustments, fixed-ratio cropping, server-validated format selection, and attachment metadata in the native media picker. It creates a standard WordPress attachment without a third-party service.

Source code

The complete, human-readable source is included in pastedin.php, assets/pastedin.js, and assets/pastedin.css. These files are the runtime source, not minified build output. No build step or third-party JavaScript library is required; the plugin uses WordPress-provided dependencies. All interface strings use standard WordPress translation functions with the pastedin text domain.

Languages

English is the source language. Translation contributions and language packs are managed through translate.wordpress.org after directory approval. No translation catalogs are bundled. When approved language packs are available and installed, WordPress uses the current user’s language, with the site language as its default. Untranslated strings fall back to English. Both PHP messages and JavaScript controls are ready for translation.

Editing tools

  • Rotate left or right.
  • Flip horizontally or vertically.
  • Adjust saturation, brightness, and contrast with three simple sliders.
  • Compare the current result with the original colors.
  • Apply Original, Sepia, Grayscale, Film noir, Psychedelic, or Cyanotype filters.
  • Crop freely or use Original, 1:1, 16:9, 4:3, and 5:4 ratios.
  • Switch supported ratios between landscape and portrait.
  • Move the crop frame with a pointer or keyboard arrow keys.
  • Reset the crop or all edits at any time before saving.

Saving and media details

  • Save as WebP, AVIF, JPEG, or PNG when supported by the active server image editor and allowed by the site.
  • Preview the edited image and final pixel dimensions.
  • Use an automatic filename or change it before saving. WordPress resolves filename collisions.
  • Set the title, alternative text, caption, and description.
  • Choose output quality for lossy formats and an optional maximum width without upscaling.
  • Preserve transparency for compatible formats; JPEG uses a white background.
  • Generate standard WordPress attachment metadata and thumbnails.
  • Select the new image immediately in the media picker after saving.
  • Remember the last successful output format in the current browser.

PastedIn sends no image or usage data to an external service. Image preparation happens in the browser and final format conversion happens on the WordPress server. The plugin contains no advertising, telemetry, remote executable code, account requirement, or premium gate.

Privacy

PastedIn does not collect, transmit, or share personal data. Images remain between the user’s browser and their WordPress site. No external API is contacted by the plugin.

Credits

PastedIn was imagined by Martin Blais, mbim.ca.

The PastedIn name and supplied logo artwork were created for this plugin by Martin Blais and are distributed with the plugin under GPLv2 or later.

Installasjon

  1. Install and activate PastedIn from Plugins > Add New, or upload the plugin ZIP.
  2. Open the native media picker and choose Paste an image, or open Media > PastedIn.
  3. Paste with Ctrl+V or Cmd+V. You can also use Read clipboard, drag a supported image, or choose an image file.
  4. Edit the image, choose its output format and details, then save it to the Media Library.

Ofte stilte spørsmål

Why is AVIF or another format unavailable?

The image library installed on your host, normally GD or Imagick, must support both the received image and the requested output. The site must also permit that MIME type, including any multisite restrictions. Unsupported choices are disabled automatically.

Why does Read clipboard not work?

Programmatic clipboard reading depends on HTTPS, browser support, and user permission. Click the paste area and press Ctrl+V or Cmd+V, or use Choose an image. Mobile clipboard access varies, so the image chooser remains available.

What can I paste?

Actual PNG, JPEG, WebP, or AVIF image data. Copied images, screenshots, and copied image files work when the browser exposes image data. Plain URLs, HTML fragments, SVG, GIF, and remote downloads are not imported. Animated WebP or AVIF files are processed as still images; animation is not preserved.

Can I paste several images at once?

PastedIn saves one image at a time. If several images are detected, only the first one is loaded and a message is shown.

Are edits non-destructive?

Yes, until saving. The preview is recalculated from the source image, so moving between Adjust, Filters, and Crop does not repeatedly recompress it. Saving creates one edited attachment and does not retain a second original clipboard file.

Does PastedIn modify normal uploads?

No global conversion filter is installed. PastedIn processes only images saved through its interface. Other image plugins may still process the resulting attachment through standard WordPress hooks.

What limits apply?

The received image is limited to the smaller of the site upload limit and 20 MB, plus 40 megapixels. The maximum-width field accepts 0 through 8192 pixels. A value of 0 means PastedIn does not resize by width. WordPress or another plugin may still apply normal large-image handling.

Very large edited PNG files can exceed the upload limit because PNG is lossless. Entering a smaller maximum width normally resolves this.

Are metadata and EXIF preserved?

PastedIn re-encodes the edited image. EXIF and GPS preservation is not guaranteed. The title, alternative text, caption, and description entered in the form are saved on the standard attachment and can be edited later.

Which editors are supported?

The plugin targets the standard wp.media picker used by WordPress, including the Classic Editor, featured images, and native galleries. Video-only and audio-only pickers are excluded. Third-party page builders that replace the native picker need separate compatibility testing.

What happens when I deactivate or delete PastedIn?

Saved images remain in the Media Library. PastedIn creates no custom database table or server-side settings. The last successful format is stored locally in the browser under the key pastedin-format.

Vurderinger

Det er ingen omtaler av denne utvidelsen.

Bidragsytere og utviklere

«PastedIn» er programvare med åpen kildekode. Følgende personer har bidratt til denne utvidelsen:

Bidragsytere

Oversett «PastedIn» til ditt språk.

Interessert i utvikling?

Bla gjennom koden, sjekk ut SVN-repositoriet, eller abonner på utviklingsloggen med RSS.

Endringslogg

1.0.3

  • Keep the selected compression quality when WordPress changes the output format.
  • Let WordPress run the sideload prefilter only once during the actual upload.
  • Enforce the documented 20 MB limit on converted files as well as source images.
  • Avoid intercepting clipboard pastes intended for other WordPress fields.
  • Handle image-editor exceptions gracefully and protect against an empty sanitized filename.

1.0.2

  • Added a compact image-loaded header while keeping the full welcome logo.
  • Moved the image chooser, status, transformations and editing tabs into a dedicated column beside the preview on wide panels.
  • Reduced editing control and save-panel spacing to use desktop height more efficiently.
  • Adapted the layout to the actual panel width, with stacked controls on smaller screens.
  • Resized the preview for the available space and preserved the original export dimensions.

1.0.1

  • Fixed saving format and metadata when controls are disabled during upload.
  • Updated the supplied logo and corrected the contributor account to mbimdev.
  • Added explicit JavaScript text domains for standard translation extraction.
  • Kept English source strings and enabled standard WordPress.org language-pack delivery without bundled catalogs.
  • Updated maximum-width feedback immediately and scoped interface colors to the plugin panel.
  • Documented source availability and the plugin’s distinctive workflow.

1.0.0

  • Initial public release.
  • Added clipboard paste, file selection, preview, media metadata, and WebP, AVIF, JPEG, and PNG output.
  • Added rotation, horizontal and vertical flip, saturation, brightness, and contrast.
  • Added Sepia, Grayscale, Film noir, Psychedelic, and Cyanotype filters.
  • Added free and fixed-ratio cropping with pointer and keyboard controls.
  • Added translation-ready English source strings.