WordPress.org

Ready to get started?Download WordPress

Forums

Photospace Responsive Gallery
Doubled thumbnail sizes (6 posts)

  1. Locally
    Member
    Posted 8 months ago #

    Hi Dean, great plugin, but I am wondering why you doubled the thumbnail size in the last release

    You used to have add_image_size('photospace_responsive_thumbnails', $options['thumbnail_width'], $options['thumbnail_height'], $options['thumbnail_crop']);

    and now have add_image_size('photospace_responsive_thumbnails', $options['thumbnail_width'] * 2, $options['thumbnail_height'] * 2, $options['thumbnail_crop']);

    At first I thought it was something I had done wrong, regenerated thumbnails etc. But it is code related.

    I was wondering if there was a specific reason why?

    Also, can you please change line 145 to
    add_submenu_page( 'options-general.php', 'Photospace Responsive options', 'Photospace Responsive', 'edit_theme_options', basename(__FILE__), array('photospace_responsive_plugin_options', 'display'));

    As for sites where for security reasons 'edit_theme' (your current capability) is turned off to disallow editing the php files, the menu option doesn't appear. I suggest edit_theme_options is a more appropriate capability.

    http://wordpress.org/plugins/photospace-responsive/

  2. THRIVE - Web Design Gold Coast
    Member
    Plugin Author

    Posted 7 months ago #

    Hi, this was for retina ready support. You should see the thumbnails are now much sharper on an iPhone for example.

    I'll be fixing the setting menu position soon!

  3. THRIVE - Web Design Gold Coast
    Member
    Plugin Author

    Posted 7 months ago #

    The thumbnails shouldn't display at double size. Let me know if this is the case and on what browser. Thanks :)

  4. Locally
    Member
    Posted 7 months ago #

    Hi, yes they did double in size, on all browsers. The option setting was 50px and the image displayed was 100px. looking at the code that was obvious $options['thumbnail_width'] * 2

    So I simply changed the options page to 25px and they are displaying at 50px.

    I'll update to the latest version now you change the option pages and see if anything happens.

  5. Locally
    Member
    Posted 7 months ago #

    I found the issue that causes the double in size.

    If you tick the 'reset' themes css (which I do as I don't want borders on the thumbnails)

    you generate this css

    /* reset */
    			.photospace_res img,
    			.photospace_res ul.thumbs,
    			.photospace_res ul.thumbs li,
    			.photospace_res ul.thumbs li a{
    				padding:0;
    				margin:0;
    				border:none !important;
    				background:none !important;
    				height:auto !important;
    				width:auto !important;
    			}
    			.photospace_res span{
    				padding:0;
    				margin:0;
    				border:none !important;
    				background:none !important;
    			}

    the key point being that the

    height:auto !important;
     width:auto !important;

    overrides the thumbnail height and width that you set the css for later.

    p.s. if you fix this, can you let me know in the release notes at least, otherwise my thumbnails will all shrink :)

  6. THRIVE - Web Design Gold Coast
    Member
    Plugin Author

    Posted 7 months ago #

    OK that makes sense. Thanks for figuring it out, I'll fix this up soon!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.