Closed jbeyer05 closed 6 years ago
It would seem that the JPEG compressor is using @dst_path, which is set in PaperclipCompression::Base to the value of @dst, which in turn is set to Paperclip::TempfileFactory.new.generate("#{@basename}.png")
Am I misusing the library somehow?
@jbeyer05 it is a bug as you found out, but I could not fully reproduce it.
Did you verify that files are really have .png
extension in your file system or is it just the temporary files in your output?
What is rotator
processor? Can you send a link? I want to test exactly like your code.
Removed .png
extension with the new 1.0.1
release. Seems like it does nothing.
I have incorporate paperclip-compression in a very simple way, requested that just JPGs get compressed. Configuration as follows:
However, when I reprocess my existing paperclip assets in the rails console, paperclip-compression is saving the file as a .png file. Note the last line in the output below:
Thoughts as to why this is happening and how to fix it?