Change path to images

This topic contains 7 replies, has 3 voices, and was last updated by  Stiofan O’Connor 9 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #59784

    wasanajones
    Buyer
    Post count: 180

    I’m using Amazon Web Services to automatically move uploaded files to S3 and Cloudfront and deleting them from my server.

    What GeoDirectory is looking for:
    https://mysite.com/wp-content/uploads/2015/11/a191.jpg

    What is in my Media Library:
    https://d3t12345678.cloudfront.net/wp-content/uploads/2015/11/a191.jpg

    Can you offer a functions.php or other slick method to replace “mysite.com” with “d3t12345678.cloudfront.net” when GeoDirectory goes looking for files? (I can even live with editing core php, but of course that is not a good idea for updates)

    Thanks

    #59860

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I don’t think this can be done with a quick function, but I’ll ask to Stiofan to confirm.

    Thanks

    #59889

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Yeah i dont think this can be done at present for all images, if you are using GD booster i think you could hack a core file to do something like this.

    Are all your images uploaded direct to the cloud or what?

    Maybe we could add a filter or an option depending on demand.

    Stiofan

    #59953

    wasanajones
    Buyer
    Post count: 180

    H- – thanks for prompt response.

    I’m using EWWW to help optimize images upon upload, and then they get sent to S3 using Amazon Web Services and WP Offload S3 (btw WP SmushIt doesn’t work for this). Then I setup a Cloudfront distribution.

    Not sure how but posts use the URL that is in the Media Library.

    WP Offload S3 has a setting to save or remove files from the server, I need to remove them otherwise I’m getting huge unnecessary storage bloat.

    I think I can trick things by manual FTP of plugin images into the upload file, but it is the images uploaded by customers that is the buggaboo.

    I’d think this would be of high demand for a number of reasons — saves storage on my VPS (which is expensive), CDN delivery with multiple sources for browser speed, saves server processing, cheap. Very easy to setup once you grasp Amazon mysteries.

    ideal solution would be to use the Media Library URL (which takes a moment to generate) rather than having to manually set the URL replacement “mysite.com” with “d3t12345678.cloudfront.net” so that it would work on multiple installs without edits.

    Thanks

    #60045

    Stiofan O’Connor
    Site Admin
    Post count: 22956
    This reply has been marked as private.
    #60120

    wasanajones
    Buyer
    Post count: 180

    Have added to Skype.

    Todd Jones

    #60873

    wasanajones
    Buyer
    Post count: 180

    Hi – any further ideas about this?

    serving images from a CDN is almost a no brainer in terms of desirability, how to implement it of course is another issue.

    functions.php, core file edit, some kind of database hack… anything…

    not storing the files on my server and not processing the image file requests would make a big difference

    #61179

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    get me on skype and we can discuss it.

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount