Git Product home page Git Product logo

Comments (7)

paradigm-creatives avatar paradigm-creatives commented on July 17, 2024

HI, any one can reply please.......... is only_process option works or not, If works how to use properly let me know...

from delayed_paperclip.

ScotterC avatar ScotterC commented on July 17, 2024

I think that the original image is always going to be touched to some degree because paperclip pulls the original from it's source to reprocess it into other styles. Is it just the original you're having issues with?

If you could put up a sample rails app with the same failure it would make it a lot easier to isolate the issue.

from delayed_paperclip.

ScotterC avatar ScotterC commented on July 17, 2024

@paradigm-creatives any update on this? I'll re open if so.

from delayed_paperclip.

gamafranco avatar gamafranco commented on July 17, 2024

I'm having the same issue. My have has 7 styles. I want three of them to be processed immediately, and the other 4 in the background.

If I had :only_process, the 4 background styles are processed by resque. The other 3 are never processed.

from delayed_paperclip.

jrgifford avatar jrgifford commented on July 17, 2024

@gamafranco do you have a uber simple rails app that shows this? That'd be useful... because we haven't been able to replicate it.

from delayed_paperclip.

joshcutler avatar joshcutler commented on July 17, 2024

I think the issue here is the following (at least I ran into this):

While delayed_paperclip is correctly not processing the listed styles, the url_helper is returning either the missing/processing image even for the styles that are processed synchronously prior to the delayed job finishing. Once the delayed job finished, then the url generator works as expected.

from delayed_paperclip.

joshcutler avatar joshcutler commented on July 17, 2024

fwiw, here is the work around I used where I return the unprocessed original if the thumbnail isn't available

def image_thumbnail(thing)
      attachment = thing.image
      options = attachment.options
      original_url = options[:interpolator].interpolate(options[:url], attachment, :original)

      return thing.image_processing? ?
        original_url :
        thing.image.url(:bigthumb)
  end

from delayed_paperclip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.