I need to create a search url such that when clicked on a image, its url should be passed as a search parameter for search by image on google.
E.g. On clicking this image:
<img src = 'http:abc.com/image1.jpg'>
I need to pass this image url for searching.
found the answer:
https://www.google.com/searchbyimage?image_url=< http:abc.com/image1.jpg >
Related
https://developers.google.com/maps/documentation/static-maps/intro#quick_example
Notice that you don't need to do anything "special" to get this image
to show up on the page. No JavaScript is required. All we needed to do
was create a URL, and place it within an tag. You can place a
Google Google Static Maps API anywhere on your webpage where you can
place an image.
How do I place the URL within an tag?
See this example running from
Quick example
Here In this example I have not used any key but you have to use key as given in documentation to avoid any errors
<img width="600" src="https://maps.googleapis.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=13&size=600x300&maptype=roadmap
&markers=color:blue%7Clabel:S%7C40.702147,-74.015794&markers=color:green%7Clabel:G%7C40.711614,-74.012318
&markers=color:red%7Clabel:C%7C40.718217,-73.998284">
I want to fetch image from the server, save it locally and and display when user opens the show page - with Rubymotion.
I am using AFMotion to fetch the image url as follows.
In my show screen I can get the image url with news.image_url. My doubt is how do i pass this to the layout file where I can add some styles to it like
I have found a solution to my own question. This is what i have done.
In the on_load method of the show news page, I pass the image url and set the remote_image for the UIImageView to the image url passed.
I got the solution from the red potion documentation. http://docs.redpotion.org/en/latest/cookbook/networking/
Is there some way to let me insert external image to Wordoress at the section of "fuatured image" from external source?
I like the image be visible at the home page but not at the post. the image at the home page need to link to the post.
Wordpress doesn't allow to insert image from external link as features image (only to post).
Couldn't find any proper solution till now in the net.
Help?
Cheers
you can add external images to wordpress post. when you click on featured image it open a modal box there are three tab the 2nd tab lets you insert the external image i.e. you can put an external URL of media, then there is wordpress function to get featured image.
so you can it using.
get_post_thumbnail($post_id, $size, $attr);
post_id (integer) (Optional) Post ID.
Default: Post ID
size
(string/array) (Optional) Either a string keyword (thumbnail, medium, large or full) or a 2-item array representing width and height in pixels, e.g. array(32,32).
Default: 'post-thumbnail'
attr
(string/array) (optional) Query string or array of attributes. See wp_get_attachment_image.
Default: None
http://codex.wordpress.org/Function_Reference/get_the_post_thumbnail
and for permalink you can use
the_permalink();
hope this helps
I've posted this elsewhere, but how about this plugin?
http://epicplugins.com/external-url-link-to-featured-images/
It lets you add featured images from an external URL.
There's also a Chrome extension: https://chrome.google.com/webstore/detail/post-to-wordpress/hhmhfcfbheceghfbfjgkjnlhooadpnej which does a really good job.
I want to put a image into a post, but it seems I just cannot get it work.
For example, this one:
http://stockcharts.com/c-sc/sc?s=ACHN&p=D&b=5&g=0&i=t88400486500&r=9913
The output is a PNG file. So in HTML tab, i put,
< img src="http://stockcharts.com/c-sc/sc?s=ACHN&p=D&b=5&g=0&i=t88400486500&r=9913">,(I leave a empty space between the < and image otherwise, stackoverflow won't allow me to put a image tag here) it just won't show up the correct image. The image you will see is "go to stockcharts.com to view this chart", that is because the URL is wrong. If the URL is correct, the image will display fine. Any way to work around?
I was trying to play around with the formatting.php file, but so far, no luck.
(It is quite strange though, if you put the URL into your IE URL bar, and press enter, it shows up fine with a chart.)
Thanks.
Your URL is a web page, NOT an image. When you try to insert the link as an image, the html IMG tag is used to specify the FILE NAME to be inserted. The file can be on a different url but it should not refer to just another uri.
to get around it, you have 4 options:
Specify the image file name directly and not the uri with the img tag.
Use iframe and put the uri
use frame (I'd not go for this)
Use Ajax and fill it in a DIV tag - most effective in my opinion.
Is there anyway to find the file path of images being showed to user in web page , or anyway to find them ?
I want source code/programming .
Just use the src attribute of the image tag in question if its in the html. Otherwise you have to check the computed css for the text url in the background and background-image rules.