I'm interested in testing a custom image filter kernel using Quartz Composer. This seems like it should be possible given the docs (see Figure 9-2):
https://developer.apple.com/library/content/documentation/GraphicsImaging/Conceptual/CoreImaging/ci_custom_filters/ci_custom_filters.html
I have installed Quartz Composer (via the XCode 8 tools), however, I can't find any option that allows me to enter my custom kernel shader code. Does anyone know how to do this?
In quartz composer go to the patch library (Command-Return default shortcut key) search for core image filter. You can load that into composition by double clicking or if its the top of your search hit Return. Click on the patch that you loaded in and go to the patch settings panel (Command-2 default shortcut). Place your code in the text field.
You can drag and drop a image in and wire the output image to your input of your core image filter patch. You need to wire it to a rendering patch to see it rendered in your viewer. Dropping in a billboard will help facilitate that. If you set the billboard's width to 2, it should fill viewers screen.
Related
I want to trigger the image plug-in after the insertElement inserts an image. You can directly modify the size of the image by dragging it, rather than clicking the source code before the plug-in takes effect
My version is 4.15. I tried a lot but it didn't work
I want to use CKEditor 5, insert image with URL dialog, instead of its default file upload dialog. how to do this in CKEditor 5 Classic?
There is, as far as I know, no such feature officially provided.
There is, however, a tutorial provided in the documentation on how to write such a feature: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/creating-simple-plugin.html
There is also a separate project on github for the same purpose, which appears to be a bit more stylish: https://github.com/khanhna/ckeditor5-image-via-url
Both approaches require to configure a modified build, and both appear to lack an important component: a button in the image's toolbar to edit that URL later on.
So, a more simple approach that does achieve practically the same is to just drag the images into the editor from some browser window.
How do I create a custom screen, with text fields and dropdowns for a plugin in VSCode, something like the settings screens I saw in some plugins, or like this Jira screen which is a form for adding a new issue?
That example is using the VS Code webview API. Webviews let you render arbitrary html in the editor, so you can create as complex a form as you wish. This example extension shows how to use the webview api.
For simple input cases however please try using VS Code's native input APIs, such as QuickInput
I recently had a team member install the Image Replace module on a site we are working on for the purpose of having different versions of a hero image for both desktop and mobile resolutions. I followed all of the steps on this blog as closely as I could- but even with the module activated, breakpoints created, image styles and picture mappings set, and the image fields edited to specify which field they are swapped with and at which breakpoints... no images are being replaced.
Just to offer any sort of potential clue, if I drag the image from a field that is intended to be swapped out at both breakpoints specified for the picture mapping into a new tab, the "correct" image styles are specified in the url but are not swapping the image as they are supposed to. In other words, I can look at the hero image at a mobile-intended breakpoint in a new tab and it will load the desktop version of the image but the url includes the string used for the mobile image style, which should mean the current image should be the swapped out mobile version as was specified in the "edit field" window during the setup process.
So, I'm very puzzled. If anyone can offer any advice it would be much appreciated!
I have an application that includes a WebView, which automatically displays PDFs in WebKits WebPDFView. When the user hovers above the lower portion of the document, an overlay appears that enables zooming, opening in Finder and saving the PDF in the download folder.
I would like to implement the latter, but I have no idea how to go about it, except that I need to implement PDFViewSavePDFToDownloadFolder. However, where do I implement it? I'd appreciate any pointers.
If you want to monkey patch Apple's built-in PDF viewer, you can't unless you want to use a code injection hack that is guaranteed to break. If you want to implement your own PDF viewer, then you build a WebKit plugin.