imagekit

Telling IKImageBrowserView not to schedule preloading

懵懂的女人 提交于 2020-01-01 06:51:26
问题 For our rewrite of the open-source iMedia framework project (in use currently by dozens of developers), we are switching to IKImageBrowserView, and having a troubling time with caching. It appears that IKImageBrowserView likes to preload/prefetch a cache of images, as a low-priority background task, as many not-yet-visible items that it can. This might be useful, except that we don't want to load the CPU (and network for remotely-retrieved images) if we can help it. Especially since we have

Swift - Scanning with IKScannerDeviceView on OSX

筅森魡賤 提交于 2019-12-13 16:03:41
问题 I'm working on an OSX app that should be able to scan a view images, then generate a PDF and so on. But I'm already stuck in the first step, since it seems I can't get IKScannerDeviceView to work and there is little to no help to be found. This is what I have until now, following another question here: import Cocoa import Quartz class ViewController: NSViewController, IKScannerDeviceViewDelegate, ICScannerDeviceDelegate, ICDeviceBrowserDelegate { @IBOutlet var scannerView: IKScannerDeviceView

Django Imagekit processing the original image

喜你入骨 提交于 2019-12-13 02:28:14
问题 With version 1.1 I don't understand how I can preprocess the original image (by JUST using imagekit) https://github.com/jdriscoll/django-imagekit/blob/develop/README.rst Having a model like this: class Photo(models.Model): original = models.ImageField(etcetera) thumbnail = ImageSpec(etcetera) How do I for instance resize the original image? This was possible in previous imagekits, however the documentation insinuates I need another modelfield? 回答1: You can use ProcessedImageField : from

Resizing image on upload with django-imagekit

妖精的绣舞 提交于 2019-12-10 10:40:51
问题 I am using imagekit to handle custom size of uploaded images. While it works fine for creating custom size images with this, I'd like to use imagekit to resize the original image on upload. Is this possible? 回答1: follow the link above. Create processors as you like for original image (resize, enhance, etc). Look imagekit wiki for examples class ResizeOriginal(processors.Resize): width = 640 height = 480 Create your ImageSpec for this original image with those previously processors. Leave pre

Resizing image on upload with django-imagekit

痴心易碎 提交于 2019-12-06 07:23:55
I am using imagekit to handle custom size of uploaded images. While it works fine for creating custom size images with this, I'd like to use imagekit to resize the original image on upload. Is this possible? follow the link above. Create processors as you like for original image (resize, enhance, etc). Look imagekit wiki for examples class ResizeOriginal(processors.Resize): width = 640 height = 480 Create your ImageSpec for this original image with those previously processors. Leave pre_cache as default (false) class Original(ImageSpec): processors = [ResizeOriginal] Add that ImageSpec to your

Selecting iPhoto images within a cocoa application

﹥>﹥吖頭↗ 提交于 2019-12-05 07:14:33
问题 I was wondering what the best way of selecting photos from iPhoto within a cocoa application? Right now, the open file dialogue doesn't allow me to go into the iPhoto library. How can I allow the user to go into that folder? IKPictureTaker was one option, but it appears that it allows the selection of one picture at a time. I'd like a user to be able to select 1 picture, or many. 回答1: Just use NSOpenPanel and set the allowed file types to the public.image UTI: [panel setAllowedFileTypes:

Telling IKImageBrowserView not to schedule preloading

谁说我不能喝 提交于 2019-12-03 20:53:30
For our rewrite of the open-source iMedia framework project (in use currently by dozens of developers), we are switching to IKImageBrowserView, and having a troubling time with caching. It appears that IKImageBrowserView likes to preload/prefetch a cache of images, as a low-priority background task, as many not-yet-visible items that it can. This might be useful, except that we don't want to load the CPU (and network for remotely-retrieved images) if we can help it. Especially since we have our own FIFO caching mechanism (so we can share our thumbnail data with other views into the same data),