Ready to get started?Download WordPress


Vector graphic becomes blurry when uploaded to theme Twenty-Twelve Theme (3 posts)

  1. kukicha
    Posted 4 months ago #

    When I uploaded my Header Image all went well. The vector image was crisp.
    This was not the case when I uploaded a comparable image to my (static) Home Page.
    About the image
    - scalable vector GIF saved for Web and devices
    - 700W x 190H.
    Looks fine in Photoshop and Illustrator.
    When I upload it to the WordPress media library (Twenty-Twelve theme) it becomes blurry.
    What I've tried based on googling advice from a variety of sources:
    Remaking then uploading the image file several times by:
    -altering the image size in the Text tab to be the same size as the image (otherwise the theme automatically scaled it down more than 50% - and it was still blurry)
    - made sure the image resolution is 72.

    I haven't yet uploaded my site (working on it on my desktop using MAMP); i don't know if that rules out getting answers to this question. If it would be helpful to upload a screenshot, pls tell me how to do so.

    I've searched everywhere for an answer to this question, and I've been troubleshooting for hours. Any help appreciated!
    Thank you.

  2. George Mamadashvili
    Posted 4 months ago #


    Have you tried to adjust image quality with the code provided in those articles?

    You can use this code to set image quality to 100 -

     * Adjust image quality to 100
    function mamaduka_adjust_quality( $image )) {
    	return $image
    add_filter( 'image_editor_save_pre', 'mamaduka_adjust_quality' );


  3. kukicha
    Posted 4 months ago #

    Hi George and thanks (!!!)
    I wonder why this didn't show up during my hours of googling.
    So, here's my question: where does one paste this code?
    There's an "image attachment template": image.php
    I've tried pasting code into the editor before, to no avail. Apparently I have no talent for using my intuition.
    I googled " how to paste code into image.php WordPress Twenty-Twelve." This time I didn't spend hours. I hope you don't think this question is inappropriately obvious.



You must log in to post.

About this Topic