Since Xcode6 can use vector assets, our designer starts to export PDF format assets instead of PNG. this's very very convenience but I found that I can't import PDF through "import action" by right click, see the PDF files is unavailable state with gray color:
And I can import it by dragging it directly.
Is there anything I am wrong?
Please check the following link, it might be of help : http://martiancraft.com/blog/2014/09/vector-images-xcode6/
Related
SquareSpace does not offer any way to export uploaded content directly. The only export option available is for WordPress, but this only generates a small XML file. What is the best way to download the actual image files from a gallery, other than right-clicking each image and choosing "Save as..."?
This worked for me [Python]. If you take the XML file that is exported for you, you can run the following against it.
I had only .png images uploaded. You will have to modify to include jpg and other image file formats.
import requests
import shutil
import xml.etree.ElementTree as ET
tree = ET.parse('filename.xml')
root = tree.getroot()
for i in root.findall('wp:attachment_url'):
print(i)
images = set([elem.text for elem in root.iter() if elem.tag=='link' and '.png' in elem.text])
for img in images:
resp = requests.get(img+'?format=3000w', stream=True)
local_file = open(f'images/{img.split("/")[-1]}', 'wb')
resp.raw.decode_content = True
shutil.copyfileobj(resp.raw, local_file)
del resp
In Chrome: File > Save Page As > Web Page Complete
Do this for each page that you want to download the images from.
I just spent way too long figuring out how to do this, so I'm leaving this here in hopes that it will save someone else time. It's not pretty, and it involves a browser extension, but I believe this is the most efficient way. Broadly speaking, this is what the process looks like:
Set up new local WordPress installation. http://www.wpbeginner.com/wp-tutorials/how-to-create-a-local-wordpress-site-using-xampp/
Export your SquareSpace site for WordPress and import it into the new installation. Ignore errors about attachments. All image galleries will now show up as pages in WordPress, with each image hotlinked to the medium-sized version of the image in the original SquareSpace site. https://support.squarespace.com/hc/en-us/articles/206566687-Exporting-your-site
Install a browser extension that lets you bulk-download images on a webpage. I used this Chrome extension: https://chrome.google.com/webstore/detail/bulk-image-downloader/lamfengpphafgjdgacmmnpakdphmjlji
Repeat the following steps for each gallery:
On the page editor, switch to text view. Copy the HTML into your favorite text editor, and use the find/replace feature to replace ".JPG" with ".JPG?format=2500w" on every image URL to force the full-size resolution. Paste the updated HTML back into WordPress and update the page.
View the updated page, and use the browser extension you installed earlier to download all the images on the page. If you have a large gallery, you might have to scroll down to the bottom of the page to force all the images to load before downloading them.
That's it. All said and done, it's a pretty simple and straightforward process. I went through a lot of different WordPress plugins in an attempt to rehost the external links to the local wp-content folder, export the media library by post, etc. This ended up being much faster and much simpler. Hope it saves you some time.
If you don't have too many images, you can do them one at a time from a gallery. While viewing a gallery (Chrome) I can right-click and open the image in a new tab and then save that (getting rid of the parameters after *.jpeg )
You can use this repo to download the images from Squarespace. It has a Tkinter GUI to make it easier to use :)
I just coded it and it works fine on my end.
Github link: https://github.com/Mascobot/squarespace_image_downloader
I downloaded the Image Downloader plugin from Chrome. Super easy to download all images into folders. Once installed, go to the URL of your website page, hit the plugin, and create a download folder. Done.
Here's an alternative:
Use a crawler like ScreamingFrog and crawl your entire domain.
Copy all of your image URLs.
Download the Chrome Addon 'Tab Save' and paste all the links in there.
Download them. Done!
Copy the image and open it in a photo editor like Preview and then export it.
That works well for a few images but not so well for many.
Or screen shots. Make the image as large as possible and screen shoot it that way.
Is it possible to view numpy array as image while debugging in PyCharm?
I tried to enter
PIL.Image.fromarray(my_data, 'RGB').show()
into watches, but got
PIL is not defined
error. This is probably because PIL was not imported in current module.
Any other way appreciated. May be can write my own viewer or something?
I've just created OpenCV Image Viewer Plugin, which displays image while debugging just on click. You can install it to any JetBrains IDE, which support Python (directly or via plugin).
https://plugins.jetbrains.com/plugin/14371-opencv-image-viewer
I was able to import packages with semicolon, and was able to show image with expression like below:
import matplotlib; matplotlib.pyplot.imshow(mydata)
I am attempting to import fa-carot-down, but I don't want to import the whole library. I need a single icon, but I'm not sure how to include it.
I'm using Webpack and SASS, if that makes any difference.
Alternatively, any means to get a carot icon for my dropdown would be appreciated.
You can try IcoMoon and Fontello as it helps you create your own library of fonts.
Furthur you can bundle it together with webpack to import the necessary icons
Now svg's are supported in IcoMoon
How do I export a reveal.js presentation to LibreOffice (*.odp) or PowerPoint (*.ppt, *.pptx)?
It's fairly easy to export to PDF, but for my colleague's to reuse my slides (and mix them with their own), they need ODP or PPT. I will always stick with html slides (such as reveals.js) because it is git friendly.
Word 2013 can now edit PDF, so can LibreOffice Draw.
I'd try what happens if you open the PDF in either of these and then try to get to save as PPTX / ODP.
Well, after you export to PDF, you can import a PDF file at the Power Point.
You can import a PDF file as a picture or as an object, just follow this steps to import.
I Hope that helps!
This seems really basic but for some reason I can't get the image source to work in the ultra-simple QML app below.
FYI, I'm running Mac OS-X 10.9.5, Qt Creator 3.2.1 based on Qt 5.3.2.
import QtQuick 2.3
import QtQuick.Controls 1.2
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Test")
Image {
id: image1
x: 10
y: 10
width: 100
height: 100
source: "testImage.png"
}
}
I get the following error:
qrc:/main.qml:10:5: QML Image: Cannot open: qrc:/testImage.png
The application window is created but no image is displayed. I've also tried wrapping the image within a Rectangle but this doesn't help.
What am I doing wrong here?
The "testImage.png" is in the project directory and I've tried all sorts of ways to specify the image path using resources, absolute, relative, and even specifying the image source manually with the QML UI designer.
I'll also mention that to get Qt 5.3.2 to work I followed the modification suggested HERE.
Thanks.
I suppose that your qml file is in resources, so try place your testImage.png image in resources too. Recompile app, run it and check is image works properly.
All should be together. For example:
My code:
Image
{
source: "images/earth.png"
If I delete this image from resources, I'll get this error too, but image still in the correct place in file system.
When qml source placed in the resource, then all files, which loads from qml should be in resource too (Qt searchs this files in the resources, not in the file system).
If you are locating from local filesystem , get the file path and prefix "file:" as source = "file:/root/Desktop/Rathod.png"
If you are using qrc, make sure the image is added to your project. Just having it in your source directory may not be enough.
For example, my main.qml is located in a particular directory. I move my .png into the same directory. I then "Add Existing Files.." and add the .png to the project. My image has the following
source:"qrc:<same dir as main.qml>/image.png"
I had a similiar problem and solved it the following way:
Right click on your qml.qrc, then choose "open with" -> "Resource
Editor"
Once you are in the Resource Editor click on "Add missing file", there choose your image
Lastly open your qml file in the Design editor and click on the Image element, on the right side choose the path to the image
There can be two problems:
The image is corrupt, although the image was correctly displayed in all previews IconImage refuses to load it. Try to use another image that is known as work correctly
It seems that the Qt Image loader is very sensitive to the image format.
There is a resource cache problem. Try to delete qml_qmlcachea.qrc in your compiling folder and try it again
Try to close Shadow Build under Projects->Build Settings.