How to capture webpage node screenshot with translucency?
For example, capture the text rendering from a specific div with transparent background.
"Node screenshot" feature of Chrome/Firefox devtools has two problems:
(Minor) They capture the region of the node, but including contents of other nodes.
(Major) I don't know how, or if it is possible to erase background and capture as a transparent background.
Related
<img src="img.pdf"> doesn't work due to it being a pdf. I don't like the embed and iframe environments either, since they add the pdf viewer options, the scroll etc. I tried converting the pdf to an image with the convert and pdftoppm commands on Linux, but these result in the image having extra white space on top and bottom to fit A4 format, and/or makes the background black (instead of white or transparent).
Any ideas?
"Img" is in effect an iFrame of an embedded binary object, but it is borderless since it is statically scaled to one non zoomable size. Note the img above this text is framed as https://i.stack.imgur.com/xpw2l.png
Yes there are ways to make it more dynamic but vanilla binary PNG/JPG/ETC are imbedded, and part of the binary HTML viewer renders those fixed areas. You can switch them off if you wish, or they don't display if badly served.
So why is PDF not simply treated like an image as per your question?
The answer is simple they are a different type of binary that requires a different html viewing binary extension. One frequent complaint is why use "menus and scrollbars if not needed for a simple file?"
The answer to that is those controls need to be in the extension, for zoom pan etc. So how comes the FireFox viewer above has none?, that's because as a user I switched them OFF.
We created a file by making Rotoscope in After effect. Then we auto-trace the Rotoscope made file and exported vector. Then we colored the layers by adding fill. We were planning to use it in our application.
When we tried to save it as a dotLottie file, the exports appeared as white in iOS but they were rendering fine in lottifiles.com. Another layer of white was added on top of fill inside the lottie. We repainted the color of the added white layers with the same color as fill we added, and then exported it as dotLottie.
Here you can see the screenshots:
enter image description here
enter image description here
When we added it to the application, we saw that some layers disappeared while others are rendering OK. There is no set number of layers missing and they all appear to be identical in the way they are created.
another quick question. I've seen this multiple times now in different code sets. Someone calls for an image from the css
HTML:
<i class="icon-map-marker2"></i>
CSS
.icon-map-marker2:before {
content: "\e6f9";
}
Which gives the output of this:
As you can see the picture isn't transparent background. I was looking to edit it to give it transparency, but can't seem to find out how. I've also tried things with the CSS like:
style="background-color:rgba(0, 0, 0, 0.5);"
// Changing the last value's number though and stuff like that
opacity: 1;
// etc
I want to keep the gold color, but have a transparent background! Thanks for the assistance!
An example is on Canvas' live preview - Hover Home -> One Page: http://preview.themeforest.net/item/canvas-the-multipurpose-html5-template/full_screen_preview/9228123?_ga=2.252490057.1116575863.1496646725-686174233.1494200798
Try adding css for a tag for background color:
a{
background:transparent;
}
Background coming form .fbox-icon this div.. just add css for that
.feature-box.fbox-bg.fbox-center .fbox-icon {
background-color:transparent;
}
An option... Download the photo and save it as a png with a transparent BG.
Personally I use Photoshop though there is a free software called Gimp - Free & Open Source Image Editor that will allow you to format transparent photos and then save them as .png.
Typical method involved saving an image locally, editing and
exporting as transparent png.
Right click the hosted photo in your browser and then choose Open Image In New Tab
Right click on the image within the newly opened tab and select Save link as, then choose your destination folder.
Open your image editor software, see my link below for GIMP if needed.
Typically, if you have a good contrast between the BG and the
image or the background is one solid color, as is in your case. You can pull the image out of the background by using the Magic Wand tool.
You can also use the lasso tool to make the selection, where you sort of draw around the selection. However, this method is a bit more tedious and time consuming.
Once you have your image selected apart from the background you wish to remove, simply hit the delete button to delete the selected pixels. *MAKE SURE YOU HAVE THE BACKGROUND SELECTED AND NOT THE IMAGE WHEN YOU DELETE!
Only need feather if you have soft edges, if not skip feathering.
Feather: Feather the selection. Under Select->Modify->Feather. Enter a low number like .5 though you may need to experiment to find the right amount
to feather your softer edges, when needed. Then select the inversion and delete the selected inversion to apply the feather and soften your edge.
Now export your image as a .png file and host it so you can link to the new transparent image.
In PhotoShop, you would choose File->Save For Web Choose PNG-24 and select Transparent
Note the size, preview if needed, then save.
Now re-host within your websites image file structure or online at imgur or other img site and link to the newly posted
transparent pic.
Google created new project based on javascripts. http://hyperlapse.tllabs.io/
Engine creating timelapse video but not generating it as visible video file.
How to get it? Only save from screen by desktop video grabbers?
Ok, I found a way, but its complex.
fist things first though, it wasn't actually made by Google, but by T+L labs using the Google Maps API and JavaScript.
Now, to the interesting part:
You're right when you say that there is no pre-made way to save the output video, so you have to mess around with the source code (to remove the overlays) before using screen capture.
What you will need:
Google Chrome
Screen capture software
Windows Live movie maker
Steps:
First, create your hyper lapse like you normally would.
Once you are ready to export, open 'inspect element' (in most browsers the default key is 'F12')
A window with lots of text should pop up. drag the edge out to enlarge the window.
Move your mouse down over the coloured text. As you do this, different parts of the page should highlight themselves in blue one at a time.
What you are seeing is an automatic system; when you hover your mouse over the code for an object on the site, the browser highlights it for you!
Move the mouse around until you find the section that highlights the scroll-bar at the bottom of the page.
Click once to select it, then press delete. The scroll-bar should vanish.
Repeat steps 6-7 for all the other things on top of the hyper lapse itself.
You should now have a clear space to record!
Finally, before you record, press 'F11' to maximise the window, removing the navigation bar at the top.
Activate your screen capture and record the hyper lapse through (Note: make sure the mouse cursor is off-screen whilst you capture)
Press 'F11' again to regain the navigation bar, and then 'F5' to refresh the page and get the removed objects back.
Use Windows Live movie maker to edit the capture down to the correct section, then export as a high quality film.
You're done!
I am working on Tizen. Developing an application on Tizen which has been already developed by me on Android.
I have to place an image in the background.and then place button on it. Click on that button and receive its action in javascript.
How can I place image in the background.
Is their any way to transfer android application on Tizen platform.
Can we make our android application on Tizen?
background-image in CSS can do it.
E.g. put mesh_background_1280x720.jpg into images directory than fix your style.css:
body {
background-image: url("../images/mesh_background_1280x720.jpg");
}
For me this works.
You can do it by using Jquery Mobile.
.ui-icon-myapp-custom {
background: url("settings.png") no-repeat rgba(0, 0, 0, 0.4) !important;
}
in HTML,
<a href="#user_info" data-role="button" data-theme="b" data-iconpos="right" data-icon="myapp-custom" >
Custom Icon
</a>
For detail, check
http://jquerymobile.com/test/docs/buttons/buttons-icons.html
Currently there is no support in Tizen SDK to convert Android app to Tizen. But there is a way. A company Open Mobile developed ACL(Application Compatible Layer) for tizen. If you have Android app, you can submit it to them, they can convert it for Tizen. All application credit will be name on you. They will get a amount from samsung. Search ACL in Tizen store, you will find several application under ACL.
I can tell you how to do this using Tizen Native (WYSIWYG). If you are seeking a code based answer, then ignore this. HOWEVER, for those trying to learn and navigate within Tizen Studio this is very helpful!
Start Tizen Studio
File/New Tizen Project
Template / Next
Mobile / Next
Native Application / Next
UI Builder Single View (Bottom Left) / Next
In the Project Explorer (Top Left) open the tree to Layout / Layout.xml (Double click to open the Layout).
Choose Design Tab (Center)
In Palette , UI Container (just to right of center)
Drag "Grid" from the Palette onto your screen
In Properties Tab (far right or turn on: Window/ Show View/ Other/ choose properties OK)
Change Col Count to 720 and Row Count to 1280
Drag "Grid" from the Palette onto your screen
Now you should see more (22) UI Components
Drag "Background" from the Palette onto your screen
If it does not automatically resize (Hello BUG) then do the following. Drag to a little LARGER then your screen size (assuming HD, Look into this I think this is REQUIRED by the Tizen Store).
With Background highlighted, again go to Properties Tab, bottom Variation Attributes make:
Left 0, Top 0, Width 720, Height 1280. The first few times it will give you trouble until you figure out that the BG resized window can't go higher than the BLUE TOP and the window should be larger on the bottom, until you manually type in the CORRECT SIZE as shown above.
Now go to or open your Resource Tab (just drag and drop files here from Windows Explorer) and find your background image that you already RESIZED CORRECTLY in Adobe PS and used SAVE FOR WEB to reduce jpg file size.
Drag onto Background "layer" on your Screen.
For a button you can:
Drag "BUTTON" from UI components onto Background OR BETTER is to drag "IMAGE" from UI components onto Background...
Then drag and drop (PRE-MADE BUTTON from Adobe PS) image from the Resource Manager Tab onto the empty image place holder. You will have to resize it manually in the Properties Tab to get the correct proportions.
REPEAT for more Images and Buttons and Text since the built in text "Label" is horrible to say the least. You can always make any of these do Button Actions.
This is as far as I have come, now I need to learn how to program said buttons and actions.
Whew! This will save you many weeks!
Wish I had found a step by step like this!
Now where to post this?
IO
P.S. If you find this useful. Tick the little black up arrow to up vote this. Purely to help others, I receive no reward for "likes".