Colorbox not rendering tiff image - colorbox

Inside of a Colorbox overlay, I have an img tag pointing to a TIFF image. The image doesn't load at all. I've read this S.O. post wherein someone blamed the browser's inability to handle the image format. But when I open another tab that points directly to the image, the browser manages to render it.
How can I get the image to correctly render in Colorbox?

Related

Images not preloading, gallery flickering

I am very new to coding and react, for my React app I have an image carousel that was flickering when you click on the arrows (my img height is set to auto in order for it to be responsive, if I put set height the flickering stops). After some research I tried preloading the images in index.html, like this (in the header tag):
link rel="preload" as="image" href="/static/media/UntitledTEST1.016538a9.png"
I am storing images in src, 'image' folder and above link is what I'm getting in the app state.
It worked great and the images were transitioning smoothly, but it stopped working out of nowhere. The horrible flickering is back and this is the message in the console:
The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
localhost/:1 The resource http://localhost:3000/static/media/TinScreenShot1.853b581e.jpg was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
I can't seem to find a solution for this, any help/input would be greatly appreciated!
Update: I realized for some bizarre reason and out of nowhere, part of the image number was chopped off in the index.html links, so the links were all wrong. The flickering is now fixed, but the resource URL error is still there.

Displaying video files in React Native Image component

I'd like to show a list with image and video files from cameraroll in React Native app. I (accidentally) have seen that the Image component can display probably the first frame of a mov file on iOS. I checked the documentation but they write nothing about video files.
A React component for displaying different types of images, including
network images, static resources, temporary local images, and images
from local disk, such as the camera roll.
My question is if it's good practice to use the Image component for displaying a "thumbnail" from a video file this way or is it better to store a separate thumbnail (image file) for every video and display those in the list instead?
I also noticed this feature when we store '.mp4'(from local storage) in an image component, it can works as thumbnail without degradation in performance. However, I also noticed when you try to render any network video file it doesn't seem to work that way.
So this feature only works when we are displaying videos from phone's gallery.
Therefore, it is good to maintain thumbnails for video files if you are using videos from any other resource

cocoa: Drag and Drop svg images

I'm working on the simple app that displays icons in the NSCollectionView. NSCollectionView displays icons preview in png format and users can drag it to the image editor. I would like to allow user drag & drop not only png, but also svg files. I loaded svg image data but how can I copy it to NSPasteboard to drug svg data to Sketch app for example.
Applications like Sketch do not drag and drop SVG data. Instead they are creating a temporary svg file and put the file URL into the NSDraggingItem. This allows some kind of SVG support.

Fixed logo in pdf

I want a logo on the right corner of a pdf file.
It needs to be clickable and has to stay fixed so if the reader scrolls down its has to stay on the same place so the logo stays in the screen.
Someone knows how to do this?
This is not possible with PDF pages. Any visible content belongs to a page so when the page scrolls, all the page related content scrolls.
I think this is impossible in PDF. But, you can do that with jQuery on website.

Cropping image into popup?

How to crop an image coming from server into popup? I have image coming from web service and showing it into a popup on a click on a table. I want to add cropping functionality into it. How can I do it??
There are a number of open source image cropping libraries on cocoacontrols.com Here's one that replicates Apple's crop image feature. You can then display the editing view controller in a popover when the user selects the row.