236495 Gallery2 Integration Bug Fix

В роботі Опубліковано %project.relative_time Оплачується при отриманні
В роботі Оплачується при отриманні

Our current web site, [url removed, login to view] integrates a private backend which integrates Gallery2 (G2). Since we are not using a standard Smarty based gallery template, our G2 integration interfaces only with the G2 libraries.

Problem:

When GalleryCoreApi::fetchResizesByItemIds($itemIds) is called, it will only fetch the resizes (items) if they have already been built beforehand, causing the function to not return the resizes that our website needs for the images to be displayed correctly. This is a problem since our company has people uploading new images regularly and we want them to be immediately available for viewing without the need to manually rebuild resizes.

Please provide a quote for coding a solution that meets the following requirements:

* Does not require user intervention

* Does not add significant overhead to page load times

* Does not hack the G2 code, allows for upgrades to future G2 2.x versions without breaking code.

* Can easily be plugged into our current functions (wrapper for fetchResizesByItemIds and other G2 library calls)

*If* it is not possible for all requirements to be met, the requirements above are listed in order of importance in descending order and you should provide a proposal for your solution pointing out any drawbacks and requirements not met by your solution.

G2 is integrated using GalleryEmbed::init(), on the public site, the loadUser option is currently set to false.

Our current API for pulling images (wraps G2 core API):

function getAlbumImageIds($albumId)

function getResizesByWidth($itemIds, $maxWidth, $useOriginal = false)

function getGalleryImageUrl($item, $htmlEntities = false)

We are using four resizes per image, two for different sized thumbnails, one for the slideshows, one for the large images seen when the slideshow is clicked. None of these sizes should be hard-coded as they are subject to change and would be changed via the G2 Admin interface.

A development environment with G2 can be provided with access via SSH/SFTP, but the problem should be reproducible on a local machine by installing G2, uploading images into an album that has resize settings already in place, then accessing those images via a simple PHP script that uses GalleryEmbed::init and GalleryCoreApi::fetchResizesByItemIds($itemIds) and seeing that the resizes are not all fetched unless they have been viewed already via the Gallery2 admin site.

By bidding on this project, you agree to the terms that all code written for this project will remain property of our company unless permission to use elsewhere is explicitly requested and given.

If this project is completed satisfactorily, we have plenty of other programming work available to keep you busy, both G2 related and not.

If you need more details about the project, feel free to ask.

Thanks,

Colin

Odd Jobs PHP

ID Проекту: #1982741

Про проект

Дистанційний проект Остання активність Jul 11, 2012