Defect #11854

Problems with thumbnails

Added by Luis Serrano Aranda about 5 years ago. Updated almost 2 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:Invalid Affected version:

Description

I have Redmine 2.1 and I don't see the thumbnails (I test with png and jpg), this is my environment

About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.4
Rails version 3.2.8
JavaScript Runtime therubyracer (V8)
Active Record version 3.2.8
Action Pack version 3.2.8
Active Resource version 3.2.8
Action Mailer version 3.2.8
Active Support version 3.2.8
Middleware Rack::Cache, ActionDispatch::Static, Rack::Lock, #<Act
iveSupport::Cache::Strategy::LocalCache::Middleware:0xefa470>, Rack::Runtime, Ra
ck::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispat
ch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, A
ctionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement
, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::Co
okieStore, ActionDispatch::Flash, RedmineDmsf::NoParse, ActionDispatch::ParamsPa
rser, ActionDispatch::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::Be
stStandardsSupport, OpenIdAuthentication
Application root /var/redmine
Environment production
Database adapter mysql
Database schema version 20120731164049

Thanks in advance

TestThumbnail.jpg (395 KB) Luis Serrano Aranda, 2012-09-17 15:14

Sin_titulo.png (361 KB) Luis Serrano Aranda, 2012-09-17 17:08

History

#1 Updated by Etienne Massip about 5 years ago

What did you write?
Did you try with an underscore in place of the space?

#2 Updated by Luis Serrano Aranda about 5 years ago

The same problem with _

#3 Updated by Etienne Massip about 5 years ago

Sin_titulo.png

Seems to work here with:

{{thumbnail(Sin_titulo.png, size=150, title=Thumbnail)}}

If you're talking about automatically displayed thumbmails, you have to check Display attachment thumbnails settings in Administration to activate it.

#4 Updated by Jean-Philippe Lang about 5 years ago

Make sure that convert (from imagemagick) is available on your system.

#5 Updated by Luis Serrano Aranda about 5 years ago

I write Sin_titulo.png and not work (the same result), the option Display attachment thumbnails is checked and I have RMagick installed.

#6 Updated by Etienne Massip about 5 years ago

Luis Serrano Aranda wrote:

I write Sin_titulo.png and not work (the same result), the option Display attachment thumbnails is checked and I have RMagick installed.

As said JPL, make sure that the convert command is accessible in the path to the user running the application.

#7 Updated by Luis Serrano Aranda about 5 years ago

Thanks Etienne but, what is the process to know if the convert command is accessible in the path to the user running the application.

#8 Updated by Antoine de pierrefeu about 5 years ago

I had the same issue on a turnkey VM and I solved the problem changing /var/www/railsapp/tmp/thumbnails rights for the user running the application

#9 Updated by Etienne Massip about 5 years ago

Luis Serrano Aranda wrote:

Thanks Etienne but, what is the process to know if the convert command is accessible in the path to the user running the application.

You can su either a which convert or a convert -version with this user login.

#10 Updated by Luis Serrano Aranda about 5 years ago

Still not working, my default folder for attachments is redmine/files and with firebug in the thumbnail look in the folder redmine/atachments/thumbnail
I changed the default folder for atachments to redmine/atachments and create inside the folder thumbnail, configure the acces and the thumbnail fails...

#11 Updated by Luis Serrano Aranda about 5 years ago

It is necessary modify the configuration.yml file (this line)

  1. Absolute path (e.g. /usr/bin/convert, c:/im/convert.exe) to
  2. the ImageMagick's `convert` binary. Used to generate attachment thumbnails.
    #imagemagick_convert_command:

#12 Updated by Luis Serrano Aranda about 5 years ago

Ups I needed to install the library

sudo apt-get install imagemagick

#13 Updated by Etienne Massip about 5 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

#14 Updated by Anthony Cartmell over 4 years ago

FWIW I had this problem too, and the fix for me was that proposed by Antoine: I had to make tmp/thumbnails writeable by the application.

#15 Updated by Pierre de LESPINAY almost 4 years ago

Redmine was telling me that ImageMagick was installed but I also had to install it with

$ sudo apt-get install imagemagick
[...]
The following NEW packages will be automatically installed:
  hicolor-icon-theme imagemagick libnetpbm10 netpbm
[...]

It works now

#16 Updated by Pierre Pretorius about 3 years ago

Same here, Redmine was saying imagemagick is available but it wasn't.

#17 Updated by Alex Kalinin almost 2 years ago

I did this:

hedin@rbdev:~$ sudo aptitude install imagemagick
hedin@rbdev:~$ sudo /etc/init.d/apache2 restart

It works.

Also available in: Atom PDF