problem with solving problems with pictures in my project.
Summary: Rilas 4 is hosted on Heroku using Paerclip with S3
The problem starts with using the previously used custom boot logic from S3. Image url looks like this: /profile_picture/:style_:image_hash. It works great with images that are there, but with images that do not have clips, still trying to gain access to the image that is not there, and the actual link looks like this: http://s3.amazonaws.com/project/profile_pictures/100h_.
has_attached_file :picture,
styles: { :'53h' => '', :'100h' => '' },
convert_options: {
:'100h' => '-gravity center -thumbnail 165x165^ -extent 165x165',
:'53h' => '-gravity center -thumbnail 45x45^ -extent 45x45'
},
path: 'profile_pictures/:style_:filename',
default_url: '/images/default-pp-large.jpg'
I suppose this might be due to the style inside the actual file name, but I'm not sure if the Eather way defauly_urlis down and all the images are broken, except for the ones that are actually there.
You can help?