Small size photos in google search

Hi there just wants to ask
When u search in google other websites come with small size photo beside website page name right side. Is there possible to do that with zenphoto ?
Thanks very much.

Comments

  • acrylian Administrator, Developer

    I assume you mean html meta data like the open graph protocol creating some preview. You can enable that using the html_meta_tags plugin. Look for the open graph options.

    However, what google displays is also a matter of SEO and content related and a quite complicated matter not easily answered always.

  • Dear @arcylian I take a screen photo to show you.
    www.fdream.co.uk my site other sites come up with photo in the search.

    https://www.fdream.co.uk/simple.jpg

    Thats the photo link if u can check it to understand better please thanks very much .

  • acrylian Administrator, Developer

    I did a very quick research and only found this from 2020: https://www.searchenginejournal.com/google-thumbnail-images-in-serps/373783/#close

    That seems to be a kind of screenshot of the site something Google does or does not and not controllable. I can only suggest to read through the Google developer notes if there is somewhere something for this. Google often does things only for sites it thinks it should value specifially by its content.

  • acrylian Administrator, Developer

    Here are some newer notes about this - this is only really on mobile resulsts - https://www.themediacaptain.com/how-to-get-thumbnail-images-on-google-mobile-searches/

    IT seems not exactly to be controllable. So it will depend on the theme you are using. And you may need to do customisations to the theme used - I see it is zpBase - to achieve this but its seems not exactly to be controllable. Ready made themes will not be able to fullfill all needs.

  • Thanks very much @acrylian for information it was to much helpful.
    Im trying to edit my codes for that i will need help from you.
    I try print some value code in php I couldnt find it. ( in image.php ).

    "@type" : "Product",
    "name" : "<?php printImageTitle(); ?>",
    "image" : " image url which is show from cache in the page ",
    "description" : "Best <?php printImageTitle(); ?> for sale in UK.",
    "url" : " url adress the page now we are on ",
    "brand" : {
    "@type" : "Brand",
    "name" : "Fluffy Dreams"
    },
    "offers" : {
    "@type" : "Offer",
    "price" : "40.00 £"
    },
    "aggregateRating" : {
    "@type" : "AggregateRating",
    "ratingValue" : " rating value which is show pn my page like between 1 and 5",
    "bestRating" : "5",
    "worstRating" : "1",
    "ratingCount" : " rating count value like how many people vote "
    }

    They are all in the page already program print them images album but ı coudnt find exact value code for that 4.

    İmage url ?
    Url page now which is print and show
    Rating value
    Rating count value ?

    Thanks very much.

  • acrylian Administrator, Developer

    That seems to be JSON-LD data which Google recommends but will not instantly help you with this. (the htmk_meta_tags plugin may get support for this in the future).

    Don't for get to encode text properly as otherwise you may invalidate the JSON array.

    For the image URL see:
    https://docs.zenphoto.org/1.5.x/function-getImageURL.html

    Or you use the object model directly $_zp_current_image->getLink()

    You find all general template functions currently in this file:
    https://docs.zenphoto.org/1.5.x/source-function-getImageURL.html#2514-2526

  • Thanks very much for all information dear @acrylian.

  • Dear @acrylian
    I have been try everything and look at the link which u send me
    https://docs.zenphoto.org/1.5.x/source-function-getImageURL.html#2514-2526

    I have still miss couple of values.

    script type="application/ld+json">
    {
    "@context" : "http://schema.org",
    "@type" : "Product",
    "name" : "<?php printImageTitle(); ?>",
    "image" : "https://www.fdream.co.uk<?php echo html_encode(getFullImageURL()); ?>",
    "description" : "Best <?php printImageTitle(); ?> for sale in UK.",
    "url" : "https://www.fdream.co.uk<?php print$_zp_current_image->getLink(); ?>",
    "brand" : {
    "@type" : "Brand",
    "name" : "Fluffy Dreams"
    },
    "offers" : {
    "@type" : "Offer",
    "price" : "£40.00"
    },
    "aggregateRating" : {
    "@type" : "AggregateRating",
    "ratingValue" : "",
    "bestRating" : "5",
    "worstRating" : "1",
    "ratingCount" : " "
    }
    }


    only 3 value left what im looking for ;

    "image: " ? "

    "ratingValue" : " ? ",

    "ratingCount" : " ? "

    "image" i have been trying all the codes i can only print the
    full size image name.
    but i need the cached one which is showing on image pages.

    for example :

    in this page;

    https://www.fdream.co.uk/uk/baby/blanket.jpg.html

    this photo link ;

    www.fdream.co.uk/cache/uk/baby/blanket_1280_Image2.jpg?cached=1648899053

    need to find the code which is print this link .
    .

    two of us we have been looking and trying last 2 days but we still

    straggle on that codes.

    Thanks very much.
    Kind regards Cenk.

  • acrylian Administrator, Developer

    www.fdream.co.uk/cache/uk/baby/blanket_1280_Image2.jpg?cached=1648899053

    That is a sized image URL. Depending on your theme and your options that could be the default size:
    https://docs.zenphoto.org/1.5.x/function-getSizeDefaultImage.html

    Or this:
    https://docs.zenphoto.org/1.5.x/function-getCustomImageURL.html

    There are various image sizes functions if you look at the docs. Search for functions with "image" and something like "size" or "custom" and review the comments. Also please read the theming tutorial if you haven't already.

  • Dear @acrylian thanks very much it was a getSizeDefaultImage().

    Last 2 code we haver been try the sort it :

    "ratingValue" : " ? ",

    "ratingCount" : " ? ".

    Its actually we can see this in image pages.
    Its printrating, but when we do it its build huge code and we didnt understand how its find the right value and print it to on page.
    We have been search and reading we find couple of values and try print them in image.php to get :
    "ratingValue" : " ? ",
    "ratingCount" : " ? "
    But noting print.

    $stars
    $unique
    $vote
    $votes
    $object
    getCurrentPageObject()
    getRating()

    Is there any code we missing somewhere do u think or where do we wrong ?

    Sorry for take your time and thanks very much again for all that very important informations.
    Kind regards.

  • acrylian Administrator, Developer
    edited May 2022

    getRating()- be sure to check for existiance as that is a plugin function - requires the current item object as it other wise does not know what to get. For an image that is $_zp_current_image, for an album $_zp_current_album. Those two are generally set on image.php and album.php.

    Instead of using getRating() it is better to use the object directly especially as the rating count is no availbale otherwise:

     $rating = $_zp_current_image->get('rating');
     $ratingcount = $_zp_current_image->get('total_votes'); 
    

    I recommend to read about the core object structure: https://www.zenphoto.org/news/zenphotos-object-model-framework/

    You might need to learn a bit about PHP and object orientation in general via php.net.

  • cenkgoksel Member
    edited May 2022

    Thank very much dear @acrylian thats working great now.
    Just a last quick question please
    u know image.php print images and give a link:
    for example :
    www.fdream.co.uk/cache/uk/baby/blanket_1280_Image2.jpg?cached=1648899053

    actually i look from ftp in server image name is :
    blanket_1280_Image2.jpg

    link should be : www.fdream.co.uk/cache/uk/baby/blanket_1280_Image2.jpg

    is there a reason program is create extra ( ?cached=1648899053 )
    this and of the image name ?

    or is it possble to fix it if we dont need it.

    thanks very much.
    Kind Regards

  • acrylian Administrator, Developer
    edited May 2022

    is there a reason program is create extra ( ?cached=1648899053 )this and of the image name ?

    Yes, a change to that string indicates image changes to the browser so it is forced to update its cache.

  • Thanks very much

Sign In or Register to comment.