Php image resize/thumbnail approach for (Wordpress) - php

My goal is to create a website for a client that needs the site to be heavily based as image galleries.
I am making the site through Wordpress so the client can upload the pictures through the friendly wordpress admin panel and then the site will display a parent image for the gallery and several thumbnails (scrolling with Jquery).
My question is for advice on good ways to resize the images as thumbnails. Currently I have some "hack-ish" code that simply changes the image dimensions, but as far as I know this doesn't reduce loading time and is quite inefficient.
Any ides on how to do it better? Possibly by using PHP GD? Thanks!

Wordpress already does this on successful upload.
Besides creating the standard set of thumbnail, medium and large sizes, you can also enter custom sizes to create under the Settings -> Media section of the dashboard.
You can also add custom sizes in plugins and / or themes. See http://codex.wordpress.org/Function_Reference/add_image_size

Timthumb might be a good solution for this. The built-in wordpress media settings can only be set once for three different image options (thumbnail, medium and large). If you change the settings, anything already uploaded won't be readjusted. Most of the time this is acceptable, but for a photo heavy site, you might need more size options and dynamic adjustments. This simple php script will create any size image and save a cache copy for quick delivery. Lots of WordPress themes use it.
http://code.google.com/p/timthumb/
-- EDIT --
So, you know that advice about TimThumb I gave yesterday? Well, check out the big news today. Just make sure you're using the latest version.
http://ma.tt/2011/08/the-timthumb-saga/

WordPress his this nifty function tucked away image_resize, I'd recommend that if your looking to do this on the code size in one location. I have a small "library" I wrote to "help" with handling file uploads in WordPress, the git repo is here.

Related

Website Images - Loss of quality

The images on my web page seem to "lose" quality / color in thumbnail sizing.
Link To Site
I have tried to insert the following to prevent Wordpress from compression the images - I then regenerated thumbnails, howver problem still exists.
The images display correctly upon opening - the error is with the thumbnails
add_filter('jpeg_quality', function($arg){return 100;});
I have also tried setting the plugin "imsanity" quality to 100 - and also tried deactiving the plugin and reuploading new files. So I am doubtful this is the problem.
I am using DIVI theme. have tried DIVI support who believe the problem is not with the theme.
any advice please? Thank you

Exporting wordpress posts with gallery?

so I want to export WordPress posts to pdf or doc and I accomplished that using plugins like Aspose pdf/doc exporter, but I faced the problem previous it specialist uploaded images into gallery and because of that, those plugins can't find any pictures inside post and because of this my post gets exported just as simple text. Of course I can do it manually but that would take tons of my time so is there any way to accomplish this?

Wordpress at hover change the featured Image

i using the portfolio-theme studio 9 from simon bouchard.
A great theme with powerfull options.http://themes.simonbouchard.com/studio9/works/
now i would like to change the view of the work-section.
the featured image should change at hovering.
i search fpr the term and found a lot of stuff but always very special and i don´t know to code it in my theme. i´m not good at php or java.
my idea is to work with custom fields and to add a line of code that the image change to the custom field at hovering. i hope it is so simple and you can help me to fix the problem.
thank you so much!
i saw the effect at this page http://heydays.no and found it very very fresh.
The site you like uses ajax to cycle through multiple images when the block is hovered. Your theme probably does not support that. I suggest you look for a theme or plugin that offers the effect you want out-of-the-box. This one comes close and you may be able to set it to do a complete image switch instead of an effect. But the effects actually look cooler to me than the image switch.

how to create a slideshow using Theme Options in wordpress by getting the Images user dynamically?

I have actually created the wordpress theme and now I want to implement dynamic slideshow options in my page by getting the values dynamically from the user using the theme options from wordpress dashboard.
Please any one help me, but don't recommend any plugins. I need only code to upload many Images as my Image count increases.
This could potentially be done on the post system, that is, if I'm understanding what you seek to do.
You could allow users to have post privileges limited to images and use the featured post functionality with images.
To do this from the theme options, you could port the posting mechanism to theme options, as I don't see a way to rig this with the native theme options (unless you were to allow user uploaded themes, which a bad idea).

Image Gallery, Open Source, that can be fully Integrated into our existing Website

Can anyone help me find a suitable Open Source Image Gallery. My main problem seems to be that I am looking for something which can be Fully Integrated into our existing website rather than having to make our site look like the image gallery template.
Thank,
You should check out gallery:
http://gallery.menalto.com/
I don't know if this is too 'templated' for your needs, but it's open source, and allows for custom module development, so changing the appearance shouldn't be too challenging.

Categories