Project

General

Profile

Actions

Defect #11854

closed

Problems with thumbnails

Added by Luis Serrano Aranda over 11 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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


Files

TestThumbnail.jpg (395 KB) TestThumbnail.jpg Luis Serrano Aranda, 2012-09-17 15:14
Sin_titulo.png (361 KB) Sin_titulo.png Luis Serrano Aranda, 2012-09-17 17:08
Actions #1

Updated by Etienne Massip over 11 years ago

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

Actions #2

Updated by Luis Serrano Aranda over 11 years ago

The same problem with _

Actions #3

Updated by Etienne Massip over 11 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.

Actions #4

Updated by Jean-Philippe Lang over 11 years ago

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

Actions #5

Updated by Luis Serrano Aranda over 11 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.

Actions #6

Updated by Etienne Massip over 11 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.

Actions #7

Updated by Luis Serrano Aranda over 11 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.

Actions #8

Updated by Antoine de pierrefeu over 11 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

Actions #9

Updated by Etienne Massip over 11 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.

Actions #10

Updated by Luis Serrano Aranda over 11 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...

Actions #11

Updated by Luis Serrano Aranda over 11 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:
Actions #12

Updated by Luis Serrano Aranda over 11 years ago

Ups I needed to install the library

sudo apt-get install imagemagick

Actions #13

Updated by Etienne Massip over 11 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid
Actions #14

Updated by Anthony Cartmell about 11 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.

Actions #15

Updated by Pierre de LESPINAY over 10 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

Actions #16

Updated by Pierre Pretorius over 9 years ago

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

Actions #17

Updated by Alex Kalinin over 8 years ago

I did this:

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

It works.

Actions

Also available in: Atom PDF