ImageMagick Engine - Version 1.2.0

Version Description

  • Rewrite image cropping for Imagick PHP module to make sure we keep image profiles. Thanks to Christian Mnch for report
  • Improve test for IM executable
  • Administration: AJAXify image resizing, clarify engine selection, only load css/js on actual plugin page
  • Handle progressbar version incompatability for jQuery UI 1.8 (in WP 3.1) and jQuery UI 1.7 (in WP 3.0)
  • Tested with WordPress 3.1-RC2
Download this release

Release Info

Developer orangelab
Plugin Icon 128x128 ImageMagick Engine
Version 1.2.0
Comparing to
See all releases

Code changes from version 1.1.2 to 1.2.0

css/ime-admin.css CHANGED
@@ -1,40 +1,77 @@
1
- #regenbar {
2
- position: relative;
3
- height: 25px;
4
-
5
- padding: 1px;
6
- }
7
-
8
- #regenbar-percent {
9
- position: absolute;
10
- left: 50%;
11
- top: 50%;
12
- width: 50px;
13
- margin-left: -25px;
14
- height: 25px;
15
- margin-top: -9px;
16
- font-weight: bold;
17
- text-align: center;
18
- }
19
-
20
- .ui-widget-content {
21
- border: 1px solid #000;
22
- background-color: #FFF;
23
- color: #000;
24
- height: 25px;
25
- }
26
-
27
- .ui-progressbar .ui-progressbar-value {
28
- height: 25px;
29
- background-color: #FF6600;
30
- }
31
-
32
- #regen-message {
33
- margin-top: 10px;
34
- width: 200px;
35
- background-color: #FFC9A5;
36
- }
37
-
38
- #regen-message-inner {
39
- padding: 10px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  }
1
+ #regenbar {
2
+ position: relative;
3
+ height: 22px;
4
+ border-radius: 0 0 5px 5px;
5
+ -moz-border-radius: 0 0 5px 5px;
6
+ -webkit-border-radius: 0 0 5px 5px;
7
+ -khtml-border-radius: 0 0 5px 5px;
8
+ }
9
+
10
+ #regenbar-percent {
11
+ position: absolute;
12
+ left: 50%;
13
+ top: 50%;
14
+ width: 50px;
15
+ margin-left: -25px;
16
+ height: 22px;
17
+ margin-top: -9px;
18
+ font-weight: bold;
19
+ text-align: center;
20
+ }
21
+
22
+ .ui-progressbar {
23
+ background-color: #eee;
24
+ color: #000;
25
+ height: 30px;
26
+ }
27
+
28
+ .ui-widget-overlay {
29
+ background: #000;
30
+ opacity: 0.6;
31
+ position: absolute;
32
+ left: 0;
33
+ top: 0;
34
+ }
35
+
36
+ .ui-dialog {
37
+ border-radius: 5px;
38
+ -moz-border-radius: 5px;
39
+ -webkit-border-radius: 5px;
40
+ -khtml-border-radius: 5px;
41
+ background: #111;
42
+ box-shadow: 0 0 10px #444;
43
+ -moz-box-shadow: 0 0 10px #444;
44
+ -webkit-box-shadow: 0 0 10px #444;
45
+ }
46
+
47
+ .ui-dialog-titlebar {
48
+ height: 20px;
49
+ line-height: 20px;
50
+ color: #ccc;
51
+ font-size: 10px;
52
+ padding-left: 5px;
53
+ }
54
+
55
+ .ui-dialog-titlebar .ui-dialog-titlebar-close {
56
+ float: right;
57
+ color: #fff;
58
+ text-decoration: none;
59
+ padding-right: 5px;
60
+ }
61
+
62
+ #regenerate-images-metabox .ajax-feedback {
63
+ margin-bottom: 5px;
64
+ }
65
+
66
+ .ui-dialog-titlebar .ui-dialog-titlebar-close:hover {
67
+ color: #ff6600;
68
+ }
69
+
70
+ .ui-progressbar .ui-progressbar-value {
71
+ height: 22px;
72
+ background: url(../images/pbar-ani.gif) #FF6600;
73
+ border-radius: 0 0 5px 5px;
74
+ -moz-border-radius: 0 0 5px 5px;
75
+ -webkit-border-radius: 0 0 5px 5px;
76
+ -khtml-border-radius: 0 0 5px 5px;
77
  }
imagemagick-engine.php CHANGED
@@ -5,9 +5,10 @@
5
  Description: Improve the quality of re-sized images by replacing standard GD library with ImageMagick
6
  Author: Orangelab
7
  Author URI: http://www.orangelab.se
8
- Version: 1.1.2
 
9
 
10
- Copyright 2010 Orangelab
11
 
12
  Licenced under the GNU GPL:
13
 
@@ -31,7 +32,6 @@
31
  * - empty!
32
  *
33
  * Future todo list:
34
- * - AJAXify re-encode startup
35
  * - admin: smarter find path to executable (maybe try 'which' or package handler?)
36
  * - allow customization of command line / class functions (safely!), check memory limit
37
  * - handle TIF and other IM formats if possible
@@ -80,9 +80,7 @@ add_action('plugins_loaded', 'ime_init');
80
 
81
  /* Plugin setup */
82
  function ime_init() {
83
- $plugin_url = trailingslashit(WP_PLUGIN_URL . '/' . dirname(plugin_basename(__FILE__)));
84
-
85
- $r = load_plugin_textdomain('imagemagick-engine', false, dirname(plugin_basename(__FILE__)) . '/languages');
86
 
87
  if (ime_active()) {
88
  add_filter('intermediate_image_sizes_advanced', 'ime_filter_image_sizes', 99, 1);
@@ -97,11 +95,18 @@ function ime_init() {
97
 
98
  add_action('wp_ajax_ime_test_im_path', 'ime_ajax_test_im_path');
99
  add_action('wp_ajax_ime_process_image', 'ime_ajax_process_image');
 
 
 
100
 
101
- wp_enqueue_script('ime-admin', $plugin_url . 'js/ime-admin.js', array('jquery'));
102
- wp_enqueue_script('jquery-ui-progressbar', $plugin_url . 'js/ui.progressbar.js', array('jquery-ui-core'));
103
-
104
- wp_enqueue_style( 'ime-admin-style', $plugin_url . 'css/ime-admin.css', array());
 
 
 
 
105
  }
106
  }
107
 
@@ -118,6 +123,19 @@ function ime_mode_valid($mode = null) {
118
  return (!empty($mode) && function_exists($fn) && call_user_func($fn));
119
  }
120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
 
122
  /*
123
  * Plugin option handling
@@ -353,10 +371,34 @@ function ime_im_php_resize($old_file, $new_file, $width, $height, $crop) {
353
  }
354
  $im->setImageOpacity(1.0);
355
 
356
- if ($crop)
357
- $im->cropThumbnailImage($width, $height);
358
- else
359
- $im->scaleImage($width, $height, true);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
360
 
361
  $im->setImagePage($width, $height, 0, 0); // to make sure canvas is correct
362
  $im->writeImage($new_file);
@@ -374,25 +416,35 @@ function ime_im_cli_valid() {
374
  return !empty($cmd) && is_executable($cmd);
375
  }
376
 
 
 
 
 
 
 
 
 
 
 
377
  // Check if path leads to ImageMagick executable
378
- function ime_im_cli_check_command($path) {
379
  $path = realpath($path);
380
  if (!is_dir($path))
381
  return null;
382
 
383
- $cmd = $path . '/convert';
384
- if (is_executable($cmd))
385
  return $cmd;
386
 
387
  $cmd = $cmd . '.exe';
388
- if (is_executable($cmd))
389
  return $cmd;
390
 
391
  return null;
392
  }
393
 
394
  // Try to find a valid ImageMagick executable
395
- function ime_im_cli_find_command() {
396
  $possible_paths = array("/usr/bin", "/usr/local/bin");
397
 
398
  foreach ($possible_paths AS $path) {
@@ -403,7 +455,7 @@ function ime_im_cli_find_command() {
403
  $path = @realpath($path);
404
  if (!$path)
405
  continue;
406
- if (ime_im_cli_check_command($path))
407
  return $path;
408
  }
409
 
@@ -411,16 +463,16 @@ function ime_im_cli_find_command() {
411
  }
412
 
413
  // Get ImageMagick executable
414
- function ime_im_cli_command() {
415
  $path = ime_get_option("cli_path");
416
  if (!empty($path))
417
- return ime_im_cli_check_command($path);
418
 
419
- $path = ime_im_cli_find_command();
420
  if (empty($path))
421
  return null;
422
  ime_set_option("cli_path", $path, true);
423
- return ime_im_cli_check_command($path);
424
  }
425
 
426
  // Resize using ImageMagick executable
@@ -460,6 +512,25 @@ function ime_ajax_test_im_path() {
460
  die();
461
  }
462
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
463
  // Process single attachment ID
464
  function ime_ajax_process_image() {
465
  global $ime_image_sizes, $ime_image_file, $_wp_additional_image_sizes;
@@ -562,9 +633,24 @@ function ime_ajax_process_image() {
562
  * Admin page functions
563
  */
564
 
565
- /* Add admin/status page */
566
  function ime_admin_menu() {
567
- add_options_page('ImageMagick Engine', 'ImageMagick Engine', 8, 'imagemagick-engine', 'ime_option_page');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
568
  }
569
 
570
  /* Add settings to plugin action links */
@@ -584,21 +670,15 @@ function ime_filter_plugin_actions($links, $file) {
584
  function ime_filter_media_meta($content, $post) {
585
  $metadata = wp_get_attachment_metadata($post->ID);
586
 
587
- if (!array_key_exists('image-converter', $metadata))
588
  return $content;
589
 
590
- $converted = false;
591
  foreach ($metadata['image-converter'] as $size => $converter) {
592
- if ($converter == 'IME') {
593
- $converted = true;
594
- break;
595
- }
596
- }
597
 
598
- if (!$converted)
599
- return $content;
600
-
601
- $content .= '</p><p><i>' . __('Resized using ImageMagick Engine', 'imagemagick-engine') . '</i>';
602
 
603
  return $content;
604
  }
@@ -623,89 +703,6 @@ function ime_option_display($display = true, $echo = true) {
623
  return $s;
624
  }
625
 
626
- // Show HTML (and JS) to regenerate images
627
- function ime_show_regenerate_images($sizes) {
628
- global $wpdb;
629
-
630
- echo '<div class="wrap"><h2>' . __('ImageMagick Engine','imagemagick-engine') . '</h2>';
631
-
632
- // Query for the IDs only to reduce memory usage
633
- $images = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type = 'attachment' AND post_mime_type LIKE 'image/%'" );
634
-
635
- // Make sure there are images to process
636
- if ( empty($images) ) {
637
- echo '<p>' . sprintf( __( "Unable to find any images. Are you sure <a href='%s'>some exist</a>?", 'imagemagick-engine' ), admin_url('upload.php?post_mime_type=image') ) . "</p>\n\n</div>";
638
- return;
639
- }
640
-
641
- // Valid results
642
- echo '<p>' . __( "Please be patient while images are regenerated. This can take a long time if you have many images.", 'imagemagick-engine' ) . '</p>';
643
-
644
- // Generate the list of IDs
645
- $ids = array();
646
- foreach ( $images as $image )
647
- $ids[] = $image->ID;
648
- $ids = implode( ',', $ids );
649
-
650
- $count = count( $images );
651
-
652
- $force = isset($_POST['force']) ? 1 : 0;
653
-
654
- $regen_sizes = array();
655
- foreach ($sizes AS $s) {
656
- $f = 'regen-size-' . $s;
657
- if (isset($_POST[$f]) && !! $_POST[$f])
658
- array_push($regen_sizes, $s);
659
- }
660
- $regen_sizes = implode('|', $regen_sizes);
661
- ?>
662
- <noscript><p><em><?php _e( 'You must enable Javascript in order to proceed!', 'wp-qui' ) ?></em></p></noscript>
663
-
664
- <div id="regenbar">
665
- <div id="regenbar-percent"></div>
666
- </div>
667
-
668
- <div id="regen-message"><div id="regen-message-inner"><?php _e('Working...', 'imagemagick-engine');?></div></div>
669
-
670
- </div>
671
-
672
- <script type="text/javascript">
673
- // <![CDATA[
674
- jQuery(document).ready(function($){
675
- var i;
676
- var rt_images = [<?php echo $ids; ?>];
677
- var rt_total = rt_images.length;
678
- var rt_count = 1;
679
- var rt_percent = 0;
680
- var rt_force = <?php echo $force; ?>;
681
- var rt_sizes = '<?php echo $regen_sizes; ?>';
682
-
683
- $("#regenbar").progressbar();
684
- $("#regenbar-percent").html( "0%" );
685
-
686
- function RegenImages( id ) {
687
- $.post( "admin-ajax.php", { action: "ime_process_image", id: id, sizes: rt_sizes, force: rt_force }, function() {
688
- rt_percent = ( rt_count / rt_total ) * 100;
689
- $("#regenbar").progressbar( "value", rt_percent );
690
- $("#regenbar-percent").html( Math.round(rt_percent) + "%" );
691
- rt_count = rt_count + 1;
692
-
693
- if ( rt_images.length ) {
694
- RegenImages( rt_images.shift() );
695
- } else {
696
- $("#regen-message-inner").html("<strong><?php echo js_escape(__( 'All done!', 'imagemagick-engine' ) ); ?></strong><br /><?php echo js_escape( sprintf( __( 'Processed %d images.', 'imagemagick-engine' ), $count ) ); ?>");
697
- }
698
-
699
- });
700
- }
701
-
702
- RegenImages( rt_images.shift() );
703
- });
704
- // ]]>
705
- </script>
706
- <?php
707
- }
708
-
709
  /* Plugin admin / status page */
710
  function ime_option_page() {
711
  global $ime_available_modes;
@@ -799,15 +796,18 @@ function ime_option_page() {
799
  . '</p></div>';
800
  ?>
801
  <div class="wrap">
 
802
  <h2><?php _e('ImageMagick Engine Settings','imagemagick-engine'); ?></h2>
803
  <form action="options-general.php?page=imagemagick-engine" method="post" name="update_options">
804
  <?php wp_nonce_field('ime-options'); ?>
805
- <input type="hidden" name="ajax_url" id="ajax_url" value="<?php bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php" />
 
 
 
806
  <div id="poststuff" class="metabox-holder has-right-sidebar">
807
  <div class="inner-sidebar">
808
  <div class="meta-box-sortables ui-sortable">
809
- <div class="postbox">
810
- <div class="handlediv" title="Click to toggle"><br /></div>
811
  <h3 class="hndle"><span><?php _e('Regenerate Images','imagemagick-engine'); ?></span></h3>
812
  <div class="inside">
813
  <div class="submitbox">
@@ -819,88 +819,102 @@ function ime_option_page() {
819
  foreach($sizes AS $s => $name) {
820
  echo '<input type="checkbox" name="regen-size-' . $s . '" value="1" ' . ($handle_sizes[$s] ? ' CHECKED ' : '') . ' /> ' . $name . '<br />';
821
  }
822
- ?>
823
- </td>
824
- </tr>
825
  </table>
826
  <p><?php _e('ImageMagick images too','imagemagick-engine'); ?>:
827
- <input type="checkbox" name="force" value="1" /></p>
828
- <p><input class="button-primary" type="submit" name="regenerate-images" value="<?php _e('Regenerate', 'imagemagick-engine'); ?>" /> <?php _e('(this can take a long time)', 'imagemagick-engine'); ?></p>
 
 
 
 
 
 
 
 
 
 
 
829
  </div>
830
  </div>
831
  </div>
832
  </div>
833
  </div>
834
- <div id="post-body">
835
- <div id="post-body-content">
836
- <table class="form-table">
837
- <tr>
838
- <th scope="row" valign="top"><?php _e('Enable enhanced image engine','imagemagick-engine'); ?>:</th>
839
- <td>
840
- <input type="checkbox" id="enabled" name="enabled" value="1" <?php echo $enabled ? " CHECKED " : ""; echo $any_valid ? '' : ' disabled=disabled '; ?> />
841
- </td>
842
- </tr>
843
- <tr>
844
- <th scope="row" valign="top"><?php _e('Image engine','imagemagick-engine'); ?>:</th>
845
- <td>
846
- <select name="mode">
847
- <?php
 
 
 
 
848
  foreach($modes_valid AS $m => $valid) {
849
  echo '<option value="' . $m . '"';
850
  if ($m == $current_mode)
851
  echo ' selected=selected ';
852
- if (!$valid)
853
- echo ' disabled=disabled ';
854
  echo '>' . $ime_available_modes[$m] . '</option>';
855
  }
856
- ?>
857
- </select>
858
- </td>
859
- </tr>
860
- <tr>
861
- <th scope="row" valign="top"><?php _e('Imagick PHP module','imagemagick-engine'); ?>:</th>
862
- <td>
863
- <img src="<?php echo ime_option_status_icon($modes_valid['php']); ?>" />
864
- <?php echo $modes_valid['php'] ? __('Imagick PHP module found', 'imagemagick-engine') : __('Imagick PHP module not found', 'imagemagick-engine'); ?>
865
- </td>
866
- </tr>
867
- <tr>
868
- <th scope="row" valign="top"><?php _e('ImageMagick path','imagemagick-engine'); ?>:</th>
869
- <td>
870
- <img id="cli_path_yes" class="cli_path_icon" src="<?php echo ime_option_status_icon(true); ?>" alt="" <?php ime_option_display($cli_path_ok); ?> />
871
- <img id="cli_path_no" class="cli_path_icon" src="<?php echo ime_option_status_icon(false); ?>" alt="<?php _e('Command not found', 'qp-qie'); ?>" <?php ime_option_display(!$cli_path_ok); ?> />
872
- <img id="cli_path_progress" src="<?php echo ime_option_admin_images_url(); ?>wpspin_light.gif" alt="<?php _e('Testing command...', 'qp-qie'); ?>" <?php ime_option_display(false); ?> />
873
- <input id="cli_path" type="text" name="cli_path" size="<?php echo max(30, strlen($cli_path) + 5); ?>" value="<?php echo $cli_path; ?>" />
874
- <input type="button" name="ime_cli_path_test" id="ime_cli_path_test" value="<?php _e('Test path', 'imagemagick-engine'); ?>" />
875
- </td>
876
- </tr>
877
- <tr>
878
- <th scope="row" valign="top"><?php _e('ImageMagick quality','imagemagick-engine'); ?>:</th>
879
- <td>
880
- <input id="quality" type="text" name="quality" size="3" value="<?php echo $quality; ?>" /> <?php _e('(0-100, leave empty for default value, computed dynamically)', 'imagemagick-engine'); ?>
881
- </td>
882
- </tr>
883
- <tr>
884
- <th scope="row" valign="top"><?php _e('Handle sizes','imagemagick-engine'); ?>:</th>
885
- <td>
886
- <?php
887
  foreach($sizes AS $s => $name) {
888
  echo '<input type="checkbox" name="handle-' . $s . '" value="1" ' . ($handle_sizes[$s] ? ' CHECKED ' : '') . ' /> ' . $name . '<br />';
889
  }
890
- ?>
891
  </td>
892
- </tr>
893
- <tr>
894
- <td>
895
- <input class="button-primary" type="submit" name="update_settings" value="<?php _e('Save Changes', 'imagemagick-engine'); ?>" />
896
- </td>
897
- </tr>
898
- </table>
 
899
  </div>
900
  </div>
 
901
  </form>
902
  </div>
903
- </div>
904
  <?php
905
  }
906
  ?>
5
  Description: Improve the quality of re-sized images by replacing standard GD library with ImageMagick
6
  Author: Orangelab
7
  Author URI: http://www.orangelab.se
8
+ Version: 1.2.0
9
+ Text Domain: imagemagick-engine
10
 
11
+ Copyright 2010, 2011 Orangelab
12
 
13
  Licenced under the GNU GPL:
14
 
32
  * - empty!
33
  *
34
  * Future todo list:
 
35
  * - admin: smarter find path to executable (maybe try 'which' or package handler?)
36
  * - allow customization of command line / class functions (safely!), check memory limit
37
  * - handle TIF and other IM formats if possible
80
 
81
  /* Plugin setup */
82
  function ime_init() {
83
+ load_plugin_textdomain('imagemagick-engine', false, dirname(plugin_basename(__FILE__)) . '/languages');
 
 
84
 
85
  if (ime_active()) {
86
  add_filter('intermediate_image_sizes_advanced', 'ime_filter_image_sizes', 99, 1);
95
 
96
  add_action('wp_ajax_ime_test_im_path', 'ime_ajax_test_im_path');
97
  add_action('wp_ajax_ime_process_image', 'ime_ajax_process_image');
98
+ add_action('wp_ajax_ime_regeneration_get_images','ime_ajax_regeneration_get_images');
99
+
100
+ wp_register_script('ime-admin', plugins_url('/js/ime-admin.js', __FILE__), array('jquery'));
101
 
102
+ /*
103
+ * jQuery UI version 1.7 and 1.8 seems incompatible...
104
+ */
105
+ if (ime_script_version_compare('jquery-ui-core', '1.8', '>=')) {
106
+ wp_register_script('jquery-ui-progressbar', plugins_url('/js/ui.progressbar-1.8.7.js', __FILE__), array('jquery-ui-core', 'jquery-ui-widget'), '1.8.7');
107
+ } else {
108
+ wp_register_script('jquery-ui-progressbar', plugins_url('/js/ui.progressbar-1.7.2.js', __FILE__), array('jquery-ui-core'), '1.7.2');
109
+ }
110
  }
111
  }
112
 
123
  return (!empty($mode) && function_exists($fn) && call_user_func($fn));
124
  }
125
 
126
+ // Check version of a registered WordPress script
127
+ function ime_script_version_compare($handle, $version, $compare = '>=') {
128
+ global $wp_scripts;
129
+ if ( !is_a($wp_scripts, 'WP_Scripts') )
130
+ $wp_scripts = new WP_Scripts();
131
+
132
+ $query = $wp_scripts->query($handle, 'registered');
133
+ if (!$query)
134
+ return false;
135
+
136
+ return version_compare($query->ver, $version, $compare);
137
+ }
138
+
139
 
140
  /*
141
  * Plugin option handling
371
  }
372
  $im->setImageOpacity(1.0);
373
 
374
+ if ($crop) {
375
+ /*
376
+ * Unfortunately we cannot use the PHP module
377
+ * cropThumbnailImage() function as it strips profile data.
378
+ *
379
+ * Crop an area proportional to target $width and $height and
380
+ * fall through to scaleImage() below.
381
+ */
382
+
383
+ $geo = $im->getImageGeometry();
384
+ $orig_width = $geo['width'];
385
+ $orig_height = $geo['height'];
386
+
387
+ if(($orig_width / $width) < ($orig_height / $height)) {
388
+ $crop_width = $orig_width;
389
+ $crop_height = ceil(($height * $orig_width) / $width);
390
+ $off_x = 0;
391
+ $off_y = ceil(($orig_height - $crop_height) / 2);
392
+ } else {
393
+ $crop_width = ceil(($width * $orig_height) / $height);
394
+ $crop_height = $orig_height;
395
+ $off_x = ceil(($orig_width - $crop_width) / 2);
396
+ $off_y = 0;
397
+ }
398
+ $im->cropImage($crop_width, $crop_height, $off_x, $off_y);
399
+ }
400
+
401
+ $im->scaleImage($width, $height, true);
402
 
403
  $im->setImagePage($width, $height, 0, 0); // to make sure canvas is correct
404
  $im->writeImage($new_file);
416
  return !empty($cmd) && is_executable($cmd);
417
  }
418
 
419
+ // Test if we are allowed to exec executable!
420
+ function ime_im_cli_check_executable($fullpath) {
421
+ if (!is_executable($fullpath))
422
+ return false;
423
+
424
+ @exec($fullpath . ' --version', $output);
425
+
426
+ return count($output) > 0;
427
+ }
428
+
429
  // Check if path leads to ImageMagick executable
430
+ function ime_im_cli_check_command($path, $executable='convert') {
431
  $path = realpath($path);
432
  if (!is_dir($path))
433
  return null;
434
 
435
+ $cmd = $path . '/' . $executable;
436
+ if (ime_im_cli_check_executable($cmd))
437
  return $cmd;
438
 
439
  $cmd = $cmd . '.exe';
440
+ if (ime_im_cli_check_executable($cmd))
441
  return $cmd;
442
 
443
  return null;
444
  }
445
 
446
  // Try to find a valid ImageMagick executable
447
+ function ime_im_cli_find_command($executable='convert') {
448
  $possible_paths = array("/usr/bin", "/usr/local/bin");
449
 
450
  foreach ($possible_paths AS $path) {
455
  $path = @realpath($path);
456
  if (!$path)
457
  continue;
458
+ if (ime_im_cli_check_command($path, $executable))
459
  return $path;
460
  }
461
 
463
  }
464
 
465
  // Get ImageMagick executable
466
+ function ime_im_cli_command($executable='convert') {
467
  $path = ime_get_option("cli_path");
468
  if (!empty($path))
469
+ return ime_im_cli_check_command($path, $executable);
470
 
471
+ $path = ime_im_cli_find_command($executable);
472
  if (empty($path))
473
  return null;
474
  ime_set_option("cli_path", $path, true);
475
+ return ime_im_cli_check_command($path, $executable);
476
  }
477
 
478
  // Resize using ImageMagick executable
512
  die();
513
  }
514
 
515
+ // Get list of attachments to regenerate
516
+ function ime_ajax_regeneration_get_images() {
517
+ global $wpdb;
518
+
519
+ if (!current_user_can('manage_options'))
520
+ wp_die('Sorry, but you do not have permissions to perform this action.');
521
+
522
+ // Query for the IDs only to reduce memory usage
523
+ $images = $wpdb->get_results( "SELECT ID FROM $wpdb->posts WHERE post_type = 'attachment' AND post_mime_type LIKE 'image/%'" );
524
+
525
+ // Generate the list of IDs
526
+ $ids = array();
527
+ foreach ( $images as $image )
528
+ $ids[] = $image->ID;
529
+ $ids = implode( ',', $ids );
530
+
531
+ die($ids);
532
+ }
533
+
534
  // Process single attachment ID
535
  function ime_ajax_process_image() {
536
  global $ime_image_sizes, $ime_image_file, $_wp_additional_image_sizes;
633
  * Admin page functions
634
  */
635
 
636
+ /* Add admin page */
637
  function ime_admin_menu() {
638
+ $page = add_options_page('ImageMagick Engine', 'ImageMagick Engine', 8, 'imagemagick-engine', 'ime_option_page');
639
+
640
+ add_action('admin_print_scripts-' . $page, 'ime_admin_scripts');
641
+ add_action('admin_print_styles-' . $page, 'ime_admin_styles');
642
+ }
643
+
644
+ /* Enqueue admin page scripts */
645
+ function ime_admin_scripts() {
646
+ wp_enqueue_script('ime-admin');
647
+ wp_enqueue_script('jquery-ui-dialog');
648
+ wp_enqueue_script('jquery-ui-progressbar');
649
+ }
650
+
651
+ /* Enqueue admin page style */
652
+ function ime_admin_styles() {
653
+ wp_enqueue_style( 'ime-admin-style', plugins_url('/css/ime-admin.css', __FILE__), array());
654
  }
655
 
656
  /* Add settings to plugin action links */
670
  function ime_filter_media_meta($content, $post) {
671
  $metadata = wp_get_attachment_metadata($post->ID);
672
 
673
+ if (!is_array($metadata) || !array_key_exists('image-converter', $metadata))
674
  return $content;
675
 
 
676
  foreach ($metadata['image-converter'] as $size => $converter) {
677
+ if ($converter != 'IME')
678
+ continue;
 
 
 
679
 
680
+ return $content . '</p><p><i>' . __('Resized using ImageMagick Engine', 'imagemagick-engine') . '</i>';
681
+ }
 
 
682
 
683
  return $content;
684
  }
703
  return $s;
704
  }
705
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
706
  /* Plugin admin / status page */
707
  function ime_option_page() {
708
  global $ime_available_modes;
796
  . '</p></div>';
797
  ?>
798
  <div class="wrap">
799
+ <div id="regen-message" class="hidden updated fade"></div>
800
  <h2><?php _e('ImageMagick Engine Settings','imagemagick-engine'); ?></h2>
801
  <form action="options-general.php?page=imagemagick-engine" method="post" name="update_options">
802
  <?php wp_nonce_field('ime-options'); ?>
803
+ <input type="hidden" name="rt_message_noimg" id="rt_message_noimg" value="<?php _e('You dont have any images to regenerate', 'imagemagick-engine'); ?>" />
804
+ <input type="hidden" name="rt_message_done" id="rt_message_done" value="<?php _e('All done!', 'imagemagick-engine'); ?>" />
805
+ <input type="hidden" name="rt_message_processed" id="rt_message_processed" value="<?php _e('Processed', 'imagemagick-engine'); ?>" />
806
+ <input type="hidden" name="rt_message_images" id="rt_message_images" value="<?php _e('images', 'imagemagick-engine'); ?>" />
807
  <div id="poststuff" class="metabox-holder has-right-sidebar">
808
  <div class="inner-sidebar">
809
  <div class="meta-box-sortables ui-sortable">
810
+ <div id="regenerate-images-metabox" class="postbox">
 
811
  <h3 class="hndle"><span><?php _e('Regenerate Images','imagemagick-engine'); ?></span></h3>
812
  <div class="inside">
813
  <div class="submitbox">
819
  foreach($sizes AS $s => $name) {
820
  echo '<input type="checkbox" name="regen-size-' . $s . '" value="1" ' . ($handle_sizes[$s] ? ' CHECKED ' : '') . ' /> ' . $name . '<br />';
821
  }
822
+ ?>
823
+ </td>
824
+ </tr>
825
  </table>
826
  <p><?php _e('ImageMagick images too','imagemagick-engine'); ?>:
827
+ <input type="checkbox" name="force" id="force" value="1" /></p>
828
+ <?php
829
+ if (!ime_active())
830
+ echo '<p class="howto">' . __('Resize will use standard WordPress functions.', 'imagemagick-engine') . '</p>';
831
+ ?>
832
+ <p><input class="button-primary" type="button" id="regenerate-images" value="<?php _e('Regenerate', 'imagemagick-engine'); ?>" /> <img alt="" title="" class="ajax-feedback" src="<?php echo ime_option_admin_images_url(); ?>wpspin_light.gif" style="visibility: hidden;"> <?php _e('(this can take a long time)', 'imagemagick-engine'); ?></p>
833
+ </div>
834
+ <div class="hidden">
835
+ <div id="regeneration" title="<?php _e('Regenerating images', 'imagemagick-engine'); ?>...">
836
+ <noscript><p><em><?php _e( 'You must enable Javascript in order to proceed!', 'imagemagick-engine' ) ?></em></p></noscript>
837
+ <div id="regenbar">
838
+ <div id="regenbar-percent"></div>
839
+ </div>
840
  </div>
841
  </div>
842
  </div>
843
  </div>
844
  </div>
845
+ </div>
846
+ <div id="post-body">
847
+ <div id="post-body-content">
848
+ <div id="ime-settings" class="postbox">
849
+ <h3 class="hndle"><span><?php _e('Settings', 'imagemagick-engine'); ?></span></h3>
850
+ <div class="inside">
851
+ <table class="form-table">
852
+ <tr>
853
+ <th scope="row" valign="top"><?php _e('Enable enhanced image engine','imagemagick-engine'); ?>:</th>
854
+ <td>
855
+ <input type="checkbox" id="enabled" name="enabled" value="1" <?php echo $enabled ? " CHECKED " : ""; echo $any_valid ? '' : ' disabled=disabled '; ?> />
856
+ </td>
857
+ </tr>
858
+ <tr>
859
+ <th scope="row" valign="top"><?php _e('Image engine','imagemagick-engine'); ?>:</th>
860
+ <td>
861
+ <select id="ime-select-mode" name="mode">
862
+ <?php
863
  foreach($modes_valid AS $m => $valid) {
864
  echo '<option value="' . $m . '"';
865
  if ($m == $current_mode)
866
  echo ' selected=selected ';
 
 
867
  echo '>' . $ime_available_modes[$m] . '</option>';
868
  }
869
+ ?>
870
+ </select>
871
+ </td>
872
+ </tr>
873
+ <tr id="ime-row-php">
874
+ <th scope="row" valign="top"><?php _e('Imagick PHP module','imagemagick-engine'); ?>:</th>
875
+ <td>
876
+ <img src="<?php echo ime_option_status_icon($modes_valid['php']); ?>" />
877
+ <?php echo $modes_valid['php'] ? __('Imagick PHP module found', 'imagemagick-engine') : __('Imagick PHP module not found', 'imagemagick-engine'); ?>
878
+ </td>
879
+ </tr>
880
+ <tr id="ime-row-cli">
881
+ <th scope="row" valign="top"><?php _e('ImageMagick path','imagemagick-engine'); ?>:</th>
882
+ <td>
883
+ <img id="cli_path_yes" class="cli_path_icon" src="<?php echo ime_option_status_icon(true); ?>" alt="" <?php ime_option_display($cli_path_ok); ?> />
884
+ <img id="cli_path_no" class="cli_path_icon" src="<?php echo ime_option_status_icon(false); ?>" alt="<?php _e('Command not found', 'qp-qie'); ?>" <?php ime_option_display(!$cli_path_ok); ?> />
885
+ <img id="cli_path_progress" src="<?php echo ime_option_admin_images_url(); ?>wpspin_light.gif" alt="<?php _e('Testing command...', 'qp-qie'); ?>" <?php ime_option_display(false); ?> />
886
+ <input id="cli_path" type="text" name="cli_path" size="<?php echo max(30, strlen($cli_path) + 5); ?>" value="<?php echo $cli_path; ?>" />
887
+ <input type="button" name="ime_cli_path_test" id="ime_cli_path_test" value="<?php _e('Test path', 'imagemagick-engine'); ?>" class="button-secondary" />
888
+ </td>
889
+ </tr>
890
+ <tr>
891
+ <th scope="row" valign="top"><?php _e('ImageMagick quality','imagemagick-engine'); ?>:</th>
892
+ <td>
893
+ <input id="quality" type="text" name="quality" size="3" value="<?php echo $quality; ?>" /> <?php _e('(0-100, leave empty for default value, computed dynamically)', 'imagemagick-engine'); ?>
894
+ </td>
895
+ </tr>
896
+ <tr>
897
+ <th scope="row" valign="top"><?php _e('Handle sizes','imagemagick-engine'); ?>:</th>
898
+ <td>
899
+ <?php
900
  foreach($sizes AS $s => $name) {
901
  echo '<input type="checkbox" name="handle-' . $s . '" value="1" ' . ($handle_sizes[$s] ? ' CHECKED ' : '') . ' /> ' . $name . '<br />';
902
  }
903
+ ?>
904
  </td>
905
+ </tr>
906
+ <tr>
907
+ <td>
908
+ <input class="button-primary" type="submit" name="update_settings" value="<?php _e('Save Changes', 'imagemagick-engine'); ?>" />
909
+ </td>
910
+ </tr>
911
+ </table>
912
+ </div>
913
  </div>
914
  </div>
915
+ </div>
916
  </form>
917
  </div>
 
918
  <?php
919
  }
920
  ?>
js/ime-admin.js CHANGED
@@ -1,8 +1,15 @@
 
 
 
 
 
 
 
1
  // Ajax test IM path
2
- function ime_test_path () {
3
  jQuery('.cli_path_icon').hide();
4
  jQuery('#cli_path_progress').show();
5
- jQuery.get(jQuery('#ajax_url').val(), {
6
  action: "ime_test_im_path",
7
  cli_path: jQuery('#cli_path').val()
8
  }, function(data) {
@@ -18,8 +25,87 @@ function ime_test_path () {
18
  });
19
  }
20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  jQuery(document).ready(function($) {
22
- jQuery('#ime_cli_path_test').click(function(){
23
- ime_test_path();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  });
25
  });
1
+ //Variables
2
+ var rt_images = "";
3
+ var rt_total = 1;
4
+ var rt_count = 1;
5
+ var rt_force = 0;
6
+ var rt_sizes = "";
7
+
8
  // Ajax test IM path
9
+ function imeTestPath () {
10
  jQuery('.cli_path_icon').hide();
11
  jQuery('#cli_path_progress').show();
12
+ jQuery.get(ajaxurl, {
13
  action: "ime_test_im_path",
14
  cli_path: jQuery('#cli_path').val()
15
  }, function(data) {
25
  });
26
  }
27
 
28
+ function imeStartResize() {
29
+ rt_sizes = "";
30
+ rt_force = 0;
31
+
32
+ jQuery('#regenerate-images-metabox input').each(function(){
33
+ if(jQuery(this).attr('name').substring(0,11) == "regen-size-" && jQuery(this).attr('checked')) {
34
+ rt_sizes = rt_sizes + jQuery(this).attr('name').substring(11) + "|";
35
+ }
36
+ });
37
+
38
+ if(jQuery('#force').attr('checked')) {
39
+ rt_force = 1;
40
+ }
41
+
42
+ rt_count = 1;
43
+ jQuery("#regenbar").progressbar();
44
+ jQuery("#regenbar-percent").html( "0%" );
45
+ jQuery('#regeneration').dialog('open');
46
+
47
+ imeRegenImages( rt_images.shift() );
48
+ }
49
+
50
+ //Regeneration of progressbar
51
+ function imeRegenImages( id ) {
52
+ jQuery.post(ajaxurl, { action: "ime_process_image", id: id, sizes: rt_sizes, force: rt_force }, function() {
53
+ var rt_percent = ( rt_count / rt_total ) * 100;
54
+ jQuery("#regenbar").progressbar( "value", rt_percent );
55
+ jQuery("#regenbar-percent").html( Math.round(rt_percent) + "%" );
56
+ rt_count = rt_count + 1;
57
+
58
+ if ( rt_images.length <= 0 ) {
59
+ jQuery('#regen-message').removeClass('hidden').html("<p><strong>"+jQuery('#rt_message_done').val()+"</strong> "+jQuery('#rt_message_processed').val()+" "+rt_total+" "+jQuery('#rt_message_images').val()+".</p>");
60
+ jQuery('#regeneration').dialog('close');
61
+ jQuery("#regenbar").progressbar( "value", 0 );
62
+ return;
63
+ }
64
+
65
+ // tail recursion
66
+ imeRegenImages( rt_images.shift() );
67
+ });
68
+ }
69
+
70
+ function imeUpdateMode() {
71
+ jQuery("#ime-select-mode option").each(function(i,e) {
72
+ var o = jQuery(this);
73
+ var mode = o.val();
74
+ if (o.attr('selected'))
75
+ jQuery('#ime-row-' + mode).show();
76
+ else
77
+ jQuery('#ime-row-' + mode).hide();
78
+ });
79
+ }
80
+
81
  jQuery(document).ready(function($) {
82
+ jQuery('#ime_cli_path_test').click(imeTestPath);
83
+
84
+ imeUpdateMode();
85
+ jQuery('#ime-select-mode').change(imeUpdateMode);
86
+
87
+ $('#regeneration').dialog({
88
+ height: 42,
89
+ minHeight: 42,
90
+ closeText: 'X',
91
+ width: '75%',
92
+ modal: true,
93
+ autoOpen: false
94
+ });
95
+
96
+ $('#regenerate-images').click(function(){
97
+ $('#regenerate-images-metabox img.ajax-feedback').css('visibility','visible');
98
+ $.post(ajaxurl, { action: "ime_regeneration_get_images" }, function(data) {
99
+ jQuery('#regen-message').addClass('hidden');
100
+ $('#regenerate-images-metabox img.ajax-feedback').css('visibility','hidden');
101
+ rt_images = data.split(",");
102
+ rt_total = rt_images.length;
103
+
104
+ if(rt_total > 0) {
105
+ imeStartResize();
106
+ } else {
107
+ alert($('#rt_message_noimg').val());
108
+ }
109
+ });
110
  });
111
  });
js/{ui.progressbar.js → ui.progressbar-1.7.2.js} RENAMED
File without changes
js/ui.progressbar-1.8.7.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery UI Progressbar 1.8.7
3
+ *
4
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
5
+ * Dual licensed under the MIT or GPL Version 2 licenses.
6
+ * http://jquery.org/license
7
+ *
8
+ * http://docs.jquery.com/UI/Progressbar
9
+ *
10
+ * Depends:
11
+ * jquery.ui.core.js
12
+ * jquery.ui.widget.js
13
+ */
14
+ (function(b,d){b.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=b("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
15
+ this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===d)return this._value();this._setOption("value",a);return this},_setOption:function(a,c){if(a==="value"){this.options.value=c;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100*
16
+ this._value()/this.options.max},_refreshValue:function(){var a=this.value(),c=this._percentage();if(this.oldValue!==a){this.oldValue=a;this._trigger("change")}this.valueDiv.toggleClass("ui-corner-right",a===this.options.max).width(c.toFixed(0)+"%");this.element.attr("aria-valuenow",a)}});b.extend(b.ui.progressbar,{version:"1.8.7"})})(jQuery);
languages/imagemagick-engine-de_DE.mo CHANGED
Binary file
languages/imagemagick-engine-de_DE.po CHANGED
@@ -1,177 +1,136 @@
1
- # Translation of the WordPress plugin ImageMagick Engine 1.1.1 by Orangelab.
2
- # Copyright (C) 2010 Orangelab
3
- # This file is distributed under the same license as the ImageMagick Engine package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
- #
6
  msgid ""
7
  msgstr ""
8
- "Project-Id-Version: ImageMagick Engine 1.1.1\n"
9
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/imagemagick-engine\n"
10
- "POT-Creation-Date: 2010-09-28 20:44+0000\n"
11
- "PO-Revision-Date: 2010-09-29 00:59+0100\n"
12
  "Last-Translator: Dirk Rottig <office@xenprovide.de>\n"
13
- "Language-Team: xenprovide <office@xenprovide.de>\n"
14
  "MIME-Version: 1.0\n"
15
- "Content-Type: text/plain; charset=utf-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
17
  "X-Poedit-Language: German\n"
18
  "X-Poedit-Country: GERMANY\n"
19
  "X-Poedit-SourceCharset: utf-8\n"
 
 
 
 
20
 
21
- #: imagemagick-engine.php:568
22
  msgid "Settings"
23
  msgstr "Einstellungen"
24
 
25
- #: imagemagick-engine.php:595
26
  msgid "Resized using ImageMagick Engine"
27
  msgstr "Das Bild wurde mit ImageMagick Engine optimiert"
28
 
29
- #. #-#-#-#-# plugin.pot (ImageMagick Engine 1.1.1) #-#-#-#-#
30
- #. Plugin Name of the plugin/theme
31
- #: imagemagick-engine.php:624
32
- msgid "ImageMagick Engine"
33
- msgstr "ImageMagick Engine"
34
-
35
- #: imagemagick-engine.php:631
36
- #, php-format
37
- msgid "Unable to find any images. Are you sure <a href='%s'>some exist</a>?"
38
- msgstr "Das Plugin kann kein Bilder finden. Sind Sie sicher, dass <a href='%s'>welche existieren</a>?"
39
-
40
- #: imagemagick-engine.php:636
41
- msgid "Please be patient while images are regenerated. This can take a long time if you have many images."
42
- msgstr "Bitte einen Augenblick Geduld, während die Bilder bearbeitet werden. Bei vielen Bildern kann das einen Augenblick dauern."
43
-
44
- #: imagemagick-engine.php:656
45
- msgid "You must enable Javascript in order to proceed!"
46
- msgstr "Sie müssen Javascript aktivieren, um fortzufahren!"
47
-
48
- #: imagemagick-engine.php:662
49
- msgid "Working..."
50
- msgstr "Berechne..."
51
-
52
- #: imagemagick-engine.php:690
53
- msgid "All done!"
54
- msgstr "Alles erledigt!"
55
-
56
- #: imagemagick-engine.php:690
57
- #, php-format
58
- msgid "Processed %d images."
59
- msgstr "%d Bilder bearbeitet."
60
-
61
- #: imagemagick-engine.php:715
62
  msgid "Thumbnail"
63
- msgstr "Miniaturbilder"
64
 
65
- #: imagemagick-engine.php:716
66
  msgid "Medium"
67
  msgstr "Mittlere Bildgröße"
68
 
69
- #: imagemagick-engine.php:717
70
  msgid "Large"
71
  msgstr "Maximale Bildgröße"
72
 
73
- #: imagemagick-engine.php:750
74
  msgid "Settings updated"
75
- msgstr "Einstellungen gespeichert"
76
 
77
- #: imagemagick-engine.php:786
78
- #, php-format
79
  msgid "No valid ImageMagick mode found! Please check %sFAQ%s for installation instructions."
80
  msgstr "Kein ImageMagick Modus gefunden! Bitte lesen Sie die %sFAQ% für Hinweise zur Installation."
81
 
82
- #: imagemagick-engine.php:790
83
  msgid "ImageMagick Engine is not enabled."
84
- msgstr "ImageMagick Engine ist nicht aktiviert."
85
 
86
- #: imagemagick-engine.php:794
87
  msgid "ImageMagick Engine Settings"
88
  msgstr "ImageMagick Engine Einstellungen"
89
 
90
- #: imagemagick-engine.php:803
 
 
 
 
 
 
 
 
 
 
 
91
  msgid "Regenerate Images"
92
- msgstr "Berechne Bilder neu"
93
 
94
- #: imagemagick-engine.php:808
95
  msgid "Sizes"
96
  msgstr "Größen"
97
 
98
- #: imagemagick-engine.php:818
99
  msgid "ImageMagick images too"
100
  msgstr "auch ImageMagick Bilder"
101
 
102
- #: imagemagick-engine.php:820
 
 
103
  msgid "Regenerate"
104
- msgstr "erneuern"
105
 
106
- #: imagemagick-engine.php:820
107
  msgid "(this can take a long time)"
108
- msgstr "(dauert einen Moment)"
 
 
 
 
 
 
109
 
110
- #: imagemagick-engine.php:830
111
  msgid "Enable enhanced image engine"
112
- msgstr "Aktiviere Image Engine"
113
 
114
- #: imagemagick-engine.php:836
115
  msgid "Image engine"
116
  msgstr "Image engine"
117
 
118
- #: imagemagick-engine.php:853
119
  msgid "Imagick PHP module"
120
  msgstr "Imagick PHP Modul"
121
 
122
- #: imagemagick-engine.php:856
123
  msgid "Imagick PHP module found"
124
  msgstr "Imagick PHP Modul gefunden"
125
 
126
- #: imagemagick-engine.php:856
127
  msgid "Imagick PHP module not found"
128
  msgstr "Imagick PHP Modul nicht gefunden"
129
 
130
- #: imagemagick-engine.php:860
131
  msgid "ImageMagick path"
132
  msgstr "ImageMagick Pfad"
133
 
134
- #: imagemagick-engine.php:863
135
  msgid "Command not found"
136
  msgstr "Befehl nicht gefunden"
137
 
138
- #: imagemagick-engine.php:864
139
  msgid "Testing command..."
140
- msgstr "Befehl testen"
141
 
142
- #: imagemagick-engine.php:866
143
  msgid "Test path"
144
- msgstr "Test Pfad"
145
 
146
- #: imagemagick-engine.php:870
147
  msgid "ImageMagick quality"
148
  msgstr "ImageMagick Qualität"
149
 
150
- #: imagemagick-engine.php:872
151
  msgid "(0-100, leave empty for default value, computed dynamically)"
152
  msgstr "(0-100, leer lassen für Standardwert, wird dynamisch berechnet)"
153
 
154
- #: imagemagick-engine.php:876
155
  msgid "Handle sizes"
156
  msgstr "Größen verarbeiten"
157
 
158
- #: imagemagick-engine.php:887
159
  msgid "Save Changes"
160
  msgstr "Änderungen speichern"
161
 
162
- #. Plugin URI of the plugin/theme
 
 
163
  msgid "http://wp.orangelab.se/imagemagick-engine/"
164
  msgstr "http://wp.orangelab.se/imagemagick-engine/"
165
 
166
- #. Description of the plugin/theme
167
  msgid "Improve the quality of re-sized images by replacing standard GD library with ImageMagick"
168
  msgstr "Verbessert die Qualität bei Bildskalierungen, indem die Standard GD Library in Wordpress mit ImageMagick ersetzt wird."
169
 
170
- #. Author of the plugin/theme
171
  msgid "Orangelab"
172
  msgstr "Orangelab"
173
 
174
- #. Author URI of the plugin/theme
175
  msgid "http://www.orangelab.se"
176
  msgstr "http://www.orangelab.se"
177
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: ImageMagick Engine 1.2.0\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: \n"
 
6
  "Last-Translator: Dirk Rottig <office@xenprovide.de>\n"
7
+ "Language-Team: Dirk Rottig <office@xenprovide.de>\n"
8
  "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "X-Poedit-Language: German\n"
12
  "X-Poedit-Country: GERMANY\n"
13
  "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: .\n"
16
+ "X-Textdomain-Support: yes\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
 
 
19
  msgid "Settings"
20
  msgstr "Einstellungen"
21
 
 
22
  msgid "Resized using ImageMagick Engine"
23
  msgstr "Das Bild wurde mit ImageMagick Engine optimiert"
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  msgid "Thumbnail"
26
+ msgstr "Miniaturbild"
27
 
 
28
  msgid "Medium"
29
  msgstr "Mittlere Bildgröße"
30
 
 
31
  msgid "Large"
32
  msgstr "Maximale Bildgröße"
33
 
34
+
35
  msgid "Settings updated"
36
+ msgstr "Einstellungen aktualisiert"
37
 
 
 
38
  msgid "No valid ImageMagick mode found! Please check %sFAQ%s for installation instructions."
39
  msgstr "Kein ImageMagick Modus gefunden! Bitte lesen Sie die %sFAQ% für Hinweise zur Installation."
40
 
 
41
  msgid "ImageMagick Engine is not enabled."
42
+ msgstr "ImageMagick ist nicht aktiviert."
43
 
 
44
  msgid "ImageMagick Engine Settings"
45
  msgstr "ImageMagick Engine Einstellungen"
46
 
47
+ msgid "You dont have any images to regenerate"
48
+ msgstr "Sie haben keine Bilder zum regenerieren"
49
+
50
+ msgid "All done!"
51
+ msgstr "Alles erledigt!"
52
+
53
+ msgid "Processed"
54
+ msgstr "Erledigt"
55
+
56
+ msgid "images"
57
+ msgstr "Bilder"
58
+
59
  msgid "Regenerate Images"
60
+ msgstr "Regenerierte Bilder"
61
 
 
62
  msgid "Sizes"
63
  msgstr "Größen"
64
 
 
65
  msgid "ImageMagick images too"
66
  msgstr "auch ImageMagick Bilder"
67
 
68
+ msgid "Resize will use standard WordPress functions."
69
+ msgstr "Änderung nutzt WordPress Standard-Funktionen."
70
+
71
  msgid "Regenerate"
72
+ msgstr "Regenerieren"
73
 
 
74
  msgid "(this can take a long time)"
75
+ msgstr "(das kann eine Weile dauern)"
76
+
77
+ msgid "Regenerating images"
78
+ msgstr "Regeneriere Bilder"
79
+
80
+ msgid "You must enable Javascript in order to proceed!"
81
+ msgstr "Sie müssen Javascript aktivieren, um fortzufahren!"
82
 
 
83
  msgid "Enable enhanced image engine"
84
+ msgstr "Aktiviere verbesserte Image Engine"
85
 
 
86
  msgid "Image engine"
87
  msgstr "Image engine"
88
 
 
89
  msgid "Imagick PHP module"
90
  msgstr "Imagick PHP Modul"
91
 
 
92
  msgid "Imagick PHP module found"
93
  msgstr "Imagick PHP Modul gefunden"
94
 
 
95
  msgid "Imagick PHP module not found"
96
  msgstr "Imagick PHP Modul nicht gefunden"
97
 
 
98
  msgid "ImageMagick path"
99
  msgstr "ImageMagick Pfad"
100
 
 
101
  msgid "Command not found"
102
  msgstr "Befehl nicht gefunden"
103
 
 
104
  msgid "Testing command..."
105
+ msgstr "Teste Befehl..."
106
 
 
107
  msgid "Test path"
108
+ msgstr "Teste Pfad"
109
 
 
110
  msgid "ImageMagick quality"
111
  msgstr "ImageMagick Qualität"
112
 
 
113
  msgid "(0-100, leave empty for default value, computed dynamically)"
114
  msgstr "(0-100, leer lassen für Standardwert, wird dynamisch berechnet)"
115
 
 
116
  msgid "Handle sizes"
117
  msgstr "Größen verarbeiten"
118
 
 
119
  msgid "Save Changes"
120
  msgstr "Änderungen speichern"
121
 
122
+ msgid "ImageMagick Engine"
123
+ msgstr "ImageMagick Engine"
124
+
125
  msgid "http://wp.orangelab.se/imagemagick-engine/"
126
  msgstr "http://wp.orangelab.se/imagemagick-engine/"
127
 
 
128
  msgid "Improve the quality of re-sized images by replacing standard GD library with ImageMagick"
129
  msgstr "Verbessert die Qualität bei Bildskalierungen, indem die Standard GD Library in Wordpress mit ImageMagick ersetzt wird."
130
 
 
131
  msgid "Orangelab"
132
  msgstr "Orangelab"
133
 
 
134
  msgid "http://www.orangelab.se"
135
  msgstr "http://www.orangelab.se"
136
 
languages/imagemagick-engine-sv_SE.mo CHANGED
Binary file
languages/imagemagick-engine-sv_SE.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: ImageMagick Engine\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/imagemagick-engine\n"
5
- "POT-Creation-Date: 2010-09-21 12:11+0000\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -10,147 +10,147 @@ msgstr ""
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
 
13
- #: imagemagick-engine.php:568
 
14
  msgid "Settings"
15
  msgstr "Inställningar"
16
 
17
- #: imagemagick-engine.php:595
18
  msgid "Resized using ImageMagick Engine"
19
  msgstr "Omskalad av ImageMagick Engine"
20
 
21
- #. #-#-#-#-# plugin.pot (ImageMagick Engine 1.1) #-#-#-#-#
22
- #. Plugin Name of the plugin/theme
23
- #: imagemagick-engine.php:624
24
- msgid "ImageMagick Engine"
25
- msgstr "ImageMagick Engine"
26
-
27
- #: imagemagick-engine.php:631
28
- #, php-format
29
- msgid "Unable to find any images. Are you sure <a href='%s'>some exist</a>?"
30
- msgstr "Hittade inga bilder. Är du säker på att <a href='%s'>du har laddat upp några</a>?"
31
-
32
- #: imagemagick-engine.php:636
33
- msgid "Please be patient while images are regenerated. This can take a long time if you have many images."
34
- msgstr "Var god vänta medan bilderna skalas om. Det kan ta lång tid om du har många bilder."
35
-
36
- #: imagemagick-engine.php:656
37
- msgid "You must enable Javascript in order to proceed!"
38
- msgstr "Du måste tillåta Javascript i din webbläsare för att kunna fortsätta!"
39
-
40
- #: imagemagick-engine.php:662
41
- msgid "Working..."
42
- msgstr "Arbetar..."
43
-
44
- #: imagemagick-engine.php:690
45
- msgid "All done!"
46
- msgstr "Färdigt!"
47
-
48
- #: imagemagick-engine.php:690
49
- #, php-format
50
- msgid "Processed %d images."
51
- msgstr "Skalat om %d bilder."
52
-
53
- #: imagemagick-engine.php:715
54
  msgid "Thumbnail"
55
  msgstr "Miniatyr"
56
 
57
- #: imagemagick-engine.php:716
58
  msgid "Medium"
59
  msgstr "Mellan"
60
 
61
- #: imagemagick-engine.php:717
62
  msgid "Large"
63
  msgstr "Stor"
64
 
65
- #: imagemagick-engine.php:750
66
  msgid "Settings updated"
67
  msgstr "Inställningar uppdaterade"
68
 
69
- #: imagemagick-engine.php:786
70
- #, php-format
71
  msgid "No valid ImageMagick mode found! Please check %sFAQ%s for installation instructions."
72
  msgstr "Ingen fungerande ImageMagick-installation hittades! Se %sFAQ%s för instruktioner hur du installerar."
73
 
74
- #: imagemagick-engine.php:790
75
  msgid "ImageMagick Engine is not enabled."
76
  msgstr "ImageMagick Engine är inte aktiverad."
77
 
78
- #: imagemagick-engine.php:794
79
  msgid "ImageMagick Engine Settings"
80
  msgstr "ImageMagick Engine Inställningar"
81
 
 
 
 
 
82
  #: imagemagick-engine.php:803
 
 
 
 
 
 
 
 
 
 
 
 
83
  msgid "Regenerate Images"
84
  msgstr "Skala om bilder"
85
 
86
- #: imagemagick-engine.php:808
87
  msgid "Sizes"
88
  msgstr "Bilder"
89
 
90
- #: imagemagick-engine.php:818
91
  msgid "ImageMagick images too"
92
  msgstr "ImageMagick bilder också"
93
 
94
- #: imagemagick-engine.php:820
 
 
 
 
95
  msgid "Regenerate"
96
  msgstr "Skala om"
97
 
98
- #: imagemagick-engine.php:820
99
  msgid "(this can take a long time)"
100
  msgstr "(det här kan ta lång tid)"
101
 
102
- #: imagemagick-engine.php:830
 
 
 
 
 
 
 
 
103
  msgid "Enable enhanced image engine"
104
  msgstr "Aktivera ImageMagick Engine"
105
 
106
- #: imagemagick-engine.php:836
107
  msgid "Image engine"
108
  msgstr "Bildmotor"
109
 
110
- #: imagemagick-engine.php:853
111
  msgid "Imagick PHP module"
112
  msgstr "Imagick PHP modul"
113
 
114
- #: imagemagick-engine.php:856
115
  msgid "Imagick PHP module found"
116
  msgstr "Imagick PHP modul finns."
117
 
118
- #: imagemagick-engine.php:856
119
  msgid "Imagick PHP module not found"
120
  msgstr "Imagick PHP modul finns ej."
121
 
122
- #: imagemagick-engine.php:860
123
  msgid "ImageMagick path"
124
  msgstr "ImageMagick sökväg"
125
 
126
- #: imagemagick-engine.php:863
127
  msgid "Command not found"
128
  msgstr "Kommando hittades inte"
129
 
130
- #: imagemagick-engine.php:864
131
  msgid "Testing command..."
132
  msgstr "Testar kommando..."
133
 
134
- #: imagemagick-engine.php:866
135
  msgid "Test path"
136
  msgstr "Testa sökväg"
137
 
138
- #: imagemagick-engine.php:870
139
  msgid "ImageMagick quality"
140
  msgstr "ImageMagick kvalité"
141
 
142
- #: imagemagick-engine.php:872
143
  msgid "(0-100, leave empty for default value, computed dynamically)"
144
  msgstr "(0-100, lämna tomt för automatiskt beräknat värde)"
145
 
146
- #: imagemagick-engine.php:876
147
  msgid "Handle sizes"
148
  msgstr "Hantera storlekar"
149
 
150
- #: imagemagick-engine.php:887
151
  msgid "Save Changes"
152
  msgstr "Spara ändringar"
153
 
 
 
 
 
154
  #. Plugin URI of the plugin/theme
155
  msgid "http://wp.orangelab.se/imagemagick-engine/"
156
  msgstr "http://wp.orangelab.se/imagemagick-engine/"
@@ -167,3 +167,16 @@ msgstr "Orangelab"
167
  msgid "http://www.orangelab.se"
168
  msgstr "http://www.orangelab.se"
169
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: ImageMagick Engine\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/imagemagick-engine\n"
5
+ "POT-Creation-Date: 2011-01-14 11:30:07+00:00\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
 
13
+ #: imagemagick-engine.php:659
14
+ #: imagemagick-engine.php:848
15
  msgid "Settings"
16
  msgstr "Inställningar"
17
 
18
+ #: imagemagick-engine.php:679
19
  msgid "Resized using ImageMagick Engine"
20
  msgstr "Omskalad av ImageMagick Engine"
21
 
22
+ #: imagemagick-engine.php:717
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  msgid "Thumbnail"
24
  msgstr "Miniatyr"
25
 
26
+ #: imagemagick-engine.php:718
27
  msgid "Medium"
28
  msgstr "Mellan"
29
 
30
+ #: imagemagick-engine.php:719
31
  msgid "Large"
32
  msgstr "Stor"
33
 
34
+ #: imagemagick-engine.php:754
35
  msgid "Settings updated"
36
  msgstr "Inställningar uppdaterade"
37
 
38
+ #: imagemagick-engine.php:790
 
39
  msgid "No valid ImageMagick mode found! Please check %sFAQ%s for installation instructions."
40
  msgstr "Ingen fungerande ImageMagick-installation hittades! Se %sFAQ%s för instruktioner hur du installerar."
41
 
42
+ #: imagemagick-engine.php:794
43
  msgid "ImageMagick Engine is not enabled."
44
  msgstr "ImageMagick Engine är inte aktiverad."
45
 
46
+ #: imagemagick-engine.php:799
47
  msgid "ImageMagick Engine Settings"
48
  msgstr "ImageMagick Engine Inställningar"
49
 
50
+ #: imagemagick-engine.php:802
51
+ msgid "You dont have any images to regenerate"
52
+ msgstr "Du har inga bilder att skala om"
53
+
54
  #: imagemagick-engine.php:803
55
+ msgid "All done!"
56
+ msgstr "Färdigt!"
57
+
58
+ #: imagemagick-engine.php:804
59
+ msgid "Processed"
60
+ msgstr "Skalat om"
61
+
62
+ #: imagemagick-engine.php:805
63
+ msgid "images"
64
+ msgstr "bilder"
65
+
66
+ #: imagemagick-engine.php:810
67
  msgid "Regenerate Images"
68
  msgstr "Skala om bilder"
69
 
70
+ #: imagemagick-engine.php:815
71
  msgid "Sizes"
72
  msgstr "Bilder"
73
 
74
+ #: imagemagick-engine.php:825
75
  msgid "ImageMagick images too"
76
  msgstr "ImageMagick bilder också"
77
 
78
+ #: imagemagick-engine.php:829
79
+ msgid "Resize will use standard WordPress functions."
80
+ msgstr "Omskalningen kommer använda Wordpress standardfunktioner."
81
+
82
+ #: imagemagick-engine.php:831
83
  msgid "Regenerate"
84
  msgstr "Skala om"
85
 
86
+ #: imagemagick-engine.php:831
87
  msgid "(this can take a long time)"
88
  msgstr "(det här kan ta lång tid)"
89
 
90
+ #: imagemagick-engine.php:834
91
+ msgid "Regenerating images"
92
+ msgstr "Skalar om bilder"
93
+
94
+ #: imagemagick-engine.php:835
95
+ msgid "You must enable Javascript in order to proceed!"
96
+ msgstr "Du måste tillåta Javascript i din webbläsare för att kunna fortsätta!"
97
+
98
+ #: imagemagick-engine.php:852
99
  msgid "Enable enhanced image engine"
100
  msgstr "Aktivera ImageMagick Engine"
101
 
102
+ #: imagemagick-engine.php:858
103
  msgid "Image engine"
104
  msgstr "Bildmotor"
105
 
106
+ #: imagemagick-engine.php:873
107
  msgid "Imagick PHP module"
108
  msgstr "Imagick PHP modul"
109
 
110
+ #: imagemagick-engine.php:876
111
  msgid "Imagick PHP module found"
112
  msgstr "Imagick PHP modul finns."
113
 
114
+ #: imagemagick-engine.php:876
115
  msgid "Imagick PHP module not found"
116
  msgstr "Imagick PHP modul finns ej."
117
 
118
+ #: imagemagick-engine.php:880
119
  msgid "ImageMagick path"
120
  msgstr "ImageMagick sökväg"
121
 
122
+ #: imagemagick-engine.php:883
123
  msgid "Command not found"
124
  msgstr "Kommando hittades inte"
125
 
126
+ #: imagemagick-engine.php:884
127
  msgid "Testing command..."
128
  msgstr "Testar kommando..."
129
 
130
+ #: imagemagick-engine.php:886
131
  msgid "Test path"
132
  msgstr "Testa sökväg"
133
 
134
+ #: imagemagick-engine.php:890
135
  msgid "ImageMagick quality"
136
  msgstr "ImageMagick kvalité"
137
 
138
+ #: imagemagick-engine.php:892
139
  msgid "(0-100, leave empty for default value, computed dynamically)"
140
  msgstr "(0-100, lämna tomt för automatiskt beräknat värde)"
141
 
142
+ #: imagemagick-engine.php:896
143
  msgid "Handle sizes"
144
  msgstr "Hantera storlekar"
145
 
146
+ #: imagemagick-engine.php:907
147
  msgid "Save Changes"
148
  msgstr "Spara ändringar"
149
 
150
+ #. Plugin Name of the plugin/theme
151
+ msgid "ImageMagick Engine"
152
+ msgstr "ImageMagick Engine"
153
+
154
  #. Plugin URI of the plugin/theme
155
  msgid "http://wp.orangelab.se/imagemagick-engine/"
156
  msgstr "http://wp.orangelab.se/imagemagick-engine/"
167
  msgid "http://www.orangelab.se"
168
  msgstr "http://www.orangelab.se"
169
 
170
+ #~ msgid "Unable to find any images. Are you sure <a href='%s'>some exist</a>?"
171
+ #~ msgstr ""
172
+ #~ "Hittade inga bilder. Är du säker på att <a href='%s'>du har laddat upp "
173
+ #~ "några</a>?"
174
+ #~ msgid ""
175
+ #~ "Please be patient while images are regenerated. This can take a long time "
176
+ #~ "if you have many images."
177
+ #~ msgstr ""
178
+ #~ "Var god vänta medan bilderna skalas om. Det kan ta lång tid om du har "
179
+ #~ "många bilder."
180
+ #~ msgid "Working..."
181
+ #~ msgstr "Arbetar..."
182
+
languages/imagemagick-engine.pot CHANGED
@@ -1,166 +1,159 @@
1
- # Translation of the WordPress plugin ImageMagick Engine 1.1 by Orangelab.
2
- # Copyright (C) 2010 Orangelab
3
  # This file is distributed under the same license as the ImageMagick Engine package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
- #
6
- #, fuzzy
7
  msgid ""
8
  msgstr ""
9
- "Project-Id-Version: ImageMagick Engine 1.1\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/imagemagick-engine\n"
11
- "POT-Creation-Date: 2010-09-21 12:11+0000\n"
 
 
 
12
  "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
- "MIME-Version: 1.0\n"
16
- "Content-Type: text/plain; charset=utf-8\n"
17
- "Content-Transfer-Encoding: 8bit\n"
18
 
19
- #: imagemagick-engine.php:568
20
  msgid "Settings"
21
  msgstr ""
22
 
23
- #: imagemagick-engine.php:595
24
  msgid "Resized using ImageMagick Engine"
25
  msgstr ""
26
 
27
- #. #-#-#-#-# plugin.pot (ImageMagick Engine 1.1) #-#-#-#-#
28
- #. Plugin Name of the plugin/theme
29
- #: imagemagick-engine.php:624
30
- msgid "ImageMagick Engine"
31
- msgstr ""
32
-
33
- #: imagemagick-engine.php:631
34
- #, php-format
35
- msgid "Unable to find any images. Are you sure <a href='%s'>some exist</a>?"
36
- msgstr ""
37
-
38
- #: imagemagick-engine.php:636
39
- msgid ""
40
- "Please be patient while images are regenerated. This can take a long time if "
41
- "you have many images."
42
- msgstr ""
43
-
44
- #: imagemagick-engine.php:656
45
- msgid "You must enable Javascript in order to proceed!"
46
- msgstr ""
47
-
48
- #: imagemagick-engine.php:662
49
- msgid "Working..."
50
- msgstr ""
51
-
52
- #: imagemagick-engine.php:690
53
- msgid "All done!"
54
- msgstr ""
55
-
56
- #: imagemagick-engine.php:690
57
- #, php-format
58
- msgid "Processed %d images."
59
- msgstr ""
60
-
61
- #: imagemagick-engine.php:715
62
  msgid "Thumbnail"
63
  msgstr ""
64
 
65
- #: imagemagick-engine.php:716
66
  msgid "Medium"
67
  msgstr ""
68
 
69
- #: imagemagick-engine.php:717
70
  msgid "Large"
71
  msgstr ""
72
 
73
- #: imagemagick-engine.php:750
74
  msgid "Settings updated"
75
  msgstr ""
76
 
77
- #: imagemagick-engine.php:786
78
- #, php-format
79
  msgid ""
80
  "No valid ImageMagick mode found! Please check %sFAQ%s for installation "
81
  "instructions."
82
  msgstr ""
83
 
84
- #: imagemagick-engine.php:790
85
  msgid "ImageMagick Engine is not enabled."
86
  msgstr ""
87
 
88
- #: imagemagick-engine.php:794
89
  msgid "ImageMagick Engine Settings"
90
  msgstr ""
91
 
 
 
 
 
92
  #: imagemagick-engine.php:803
 
 
 
 
 
 
 
 
 
 
 
 
93
  msgid "Regenerate Images"
94
  msgstr ""
95
 
96
- #: imagemagick-engine.php:808
97
  msgid "Sizes"
98
  msgstr ""
99
 
100
- #: imagemagick-engine.php:818
101
  msgid "ImageMagick images too"
102
  msgstr ""
103
 
104
- #: imagemagick-engine.php:820
 
 
 
 
105
  msgid "Regenerate"
106
  msgstr ""
107
 
108
- #: imagemagick-engine.php:820
109
  msgid "(this can take a long time)"
110
  msgstr ""
111
 
112
- #: imagemagick-engine.php:830
 
 
 
 
 
 
 
 
113
  msgid "Enable enhanced image engine"
114
  msgstr ""
115
 
116
- #: imagemagick-engine.php:836
117
  msgid "Image engine"
118
  msgstr ""
119
 
120
- #: imagemagick-engine.php:853
121
  msgid "Imagick PHP module"
122
  msgstr ""
123
 
124
- #: imagemagick-engine.php:856
125
  msgid "Imagick PHP module found"
126
  msgstr ""
127
 
128
- #: imagemagick-engine.php:856
129
  msgid "Imagick PHP module not found"
130
  msgstr ""
131
 
132
- #: imagemagick-engine.php:860
133
  msgid "ImageMagick path"
134
  msgstr ""
135
 
136
- #: imagemagick-engine.php:863
137
  msgid "Command not found"
138
  msgstr ""
139
 
140
- #: imagemagick-engine.php:864
141
  msgid "Testing command..."
142
  msgstr ""
143
 
144
- #: imagemagick-engine.php:866
145
  msgid "Test path"
146
  msgstr ""
147
 
148
- #: imagemagick-engine.php:870
149
  msgid "ImageMagick quality"
150
  msgstr ""
151
 
152
- #: imagemagick-engine.php:872
153
  msgid "(0-100, leave empty for default value, computed dynamically)"
154
  msgstr ""
155
 
156
- #: imagemagick-engine.php:876
157
  msgid "Handle sizes"
158
  msgstr ""
159
 
160
- #: imagemagick-engine.php:887
161
  msgid "Save Changes"
162
  msgstr ""
163
 
 
 
 
 
164
  #. Plugin URI of the plugin/theme
165
  msgid "http://wp.orangelab.se/imagemagick-engine/"
166
  msgstr ""
1
+ # Copyright (C) 2010-2011 Orangelab
 
2
  # This file is distributed under the same license as the ImageMagick Engine package.
 
 
 
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: ImageMagick Engine 1.2.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/imagemagick-engine\n"
7
+ "POT-Creation-Date: 2011-01-14 11:30:07+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
  "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
 
 
 
14
 
15
+ #: imagemagick-engine.php:659 imagemagick-engine.php:848
16
  msgid "Settings"
17
  msgstr ""
18
 
19
+ #: imagemagick-engine.php:679
20
  msgid "Resized using ImageMagick Engine"
21
  msgstr ""
22
 
23
+ #: imagemagick-engine.php:717
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  msgid "Thumbnail"
25
  msgstr ""
26
 
27
+ #: imagemagick-engine.php:718
28
  msgid "Medium"
29
  msgstr ""
30
 
31
+ #: imagemagick-engine.php:719
32
  msgid "Large"
33
  msgstr ""
34
 
35
+ #: imagemagick-engine.php:754
36
  msgid "Settings updated"
37
  msgstr ""
38
 
39
+ #: imagemagick-engine.php:790
 
40
  msgid ""
41
  "No valid ImageMagick mode found! Please check %sFAQ%s for installation "
42
  "instructions."
43
  msgstr ""
44
 
45
+ #: imagemagick-engine.php:794
46
  msgid "ImageMagick Engine is not enabled."
47
  msgstr ""
48
 
49
+ #: imagemagick-engine.php:799
50
  msgid "ImageMagick Engine Settings"
51
  msgstr ""
52
 
53
+ #: imagemagick-engine.php:802
54
+ msgid "You dont have any images to regenerate"
55
+ msgstr ""
56
+
57
  #: imagemagick-engine.php:803
58
+ msgid "All done!"
59
+ msgstr ""
60
+
61
+ #: imagemagick-engine.php:804
62
+ msgid "Processed"
63
+ msgstr ""
64
+
65
+ #: imagemagick-engine.php:805
66
+ msgid "images"
67
+ msgstr ""
68
+
69
+ #: imagemagick-engine.php:810
70
  msgid "Regenerate Images"
71
  msgstr ""
72
 
73
+ #: imagemagick-engine.php:815
74
  msgid "Sizes"
75
  msgstr ""
76
 
77
+ #: imagemagick-engine.php:825
78
  msgid "ImageMagick images too"
79
  msgstr ""
80
 
81
+ #: imagemagick-engine.php:829
82
+ msgid "Resize will use standard WordPress functions."
83
+ msgstr ""
84
+
85
+ #: imagemagick-engine.php:831
86
  msgid "Regenerate"
87
  msgstr ""
88
 
89
+ #: imagemagick-engine.php:831
90
  msgid "(this can take a long time)"
91
  msgstr ""
92
 
93
+ #: imagemagick-engine.php:834
94
+ msgid "Regenerating images"
95
+ msgstr ""
96
+
97
+ #: imagemagick-engine.php:835
98
+ msgid "You must enable Javascript in order to proceed!"
99
+ msgstr ""
100
+
101
+ #: imagemagick-engine.php:852
102
  msgid "Enable enhanced image engine"
103
  msgstr ""
104
 
105
+ #: imagemagick-engine.php:858
106
  msgid "Image engine"
107
  msgstr ""
108
 
109
+ #: imagemagick-engine.php:873
110
  msgid "Imagick PHP module"
111
  msgstr ""
112
 
113
+ #: imagemagick-engine.php:876
114
  msgid "Imagick PHP module found"
115
  msgstr ""
116
 
117
+ #: imagemagick-engine.php:876
118
  msgid "Imagick PHP module not found"
119
  msgstr ""
120
 
121
+ #: imagemagick-engine.php:880
122
  msgid "ImageMagick path"
123
  msgstr ""
124
 
125
+ #: imagemagick-engine.php:883
126
  msgid "Command not found"
127
  msgstr ""
128
 
129
+ #: imagemagick-engine.php:884
130
  msgid "Testing command..."
131
  msgstr ""
132
 
133
+ #: imagemagick-engine.php:886
134
  msgid "Test path"
135
  msgstr ""
136
 
137
+ #: imagemagick-engine.php:890
138
  msgid "ImageMagick quality"
139
  msgstr ""
140
 
141
+ #: imagemagick-engine.php:892
142
  msgid "(0-100, leave empty for default value, computed dynamically)"
143
  msgstr ""
144
 
145
+ #: imagemagick-engine.php:896
146
  msgid "Handle sizes"
147
  msgstr ""
148
 
149
+ #: imagemagick-engine.php:907
150
  msgid "Save Changes"
151
  msgstr ""
152
 
153
+ #. Plugin Name of the plugin/theme
154
+ msgid "ImageMagick Engine"
155
+ msgstr ""
156
+
157
  #. Plugin URI of the plugin/theme
158
  msgid "http://wp.orangelab.se/imagemagick-engine/"
159
  msgstr ""
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: orangelab
3
  Tags: image, images, picture, imagemagick, gd
4
  Requires at least: 2.9
5
- Tested up to: 3.0.1
6
- Stable tag: 1.1.2
7
 
8
  Improve the quality of re-sized images by replacing standard GD library with ImageMagick.
9
 
@@ -54,9 +54,9 @@ You'll need full access to your server and a bit of technical know-how. If you d
54
 
55
  Don't do it yourself unless you know what you are doing.
56
 
57
- Most Linux distributions have a package for "ImageMagick". Some have a package for "php5-imagick". It is also possible to install the PHP module using the PEAR.
58
 
59
- You can also find binary releases at http://www.imagemagick.org including Windows installer.
60
 
61
  == Screenshots ==
62
 
@@ -65,6 +65,13 @@ You can also find binary releases at http://www.imagemagick.org including Windo
65
 
66
  == Changelog ==
67
 
 
 
 
 
 
 
 
68
  = 1.1.2 =
69
  * Fix bug with forced resize of custom image sizes
70
  * Fix warning with open_basedir restriction during path test
@@ -79,3 +86,8 @@ You can also find binary releases at http://www.imagemagick.org including Windo
79
 
80
  = 1.0 =
81
  * Initial release
 
 
 
 
 
2
  Contributors: orangelab
3
  Tags: image, images, picture, imagemagick, gd
4
  Requires at least: 2.9
5
+ Tested up to: 3.1-RC2
6
+ Stable tag: 1.2.0
7
 
8
  Improve the quality of re-sized images by replacing standard GD library with ImageMagick.
9
 
54
 
55
  Don't do it yourself unless you know what you are doing.
56
 
57
+ Most Linux distributions have a package for "ImageMagick". Some have a package for "php5-imagick". It is possible to install the PHP module using PEAR.
58
 
59
+ You can also find binary releases at http://www.imagemagick.org including a Windows installer.
60
 
61
  == Screenshots ==
62
 
65
 
66
  == Changelog ==
67
 
68
+ = 1.2.0 =
69
+ * Rewrite image cropping for Imagick PHP module to make sure we keep image profiles. Thanks to Christian Münch for report
70
+ * Improve test for IM executable
71
+ * Administration: AJAXify image resizing, clarify engine selection, only load css/js on actual plugin page
72
+ * Handle progressbar version incompatability for jQuery UI 1.8 (in WP 3.1) and jQuery UI 1.7 (in WP 3.0)
73
+ * Tested with WordPress 3.1-RC2
74
+
75
  = 1.1.2 =
76
  * Fix bug with forced resize of custom image sizes
77
  * Fix warning with open_basedir restriction during path test
86
 
87
  = 1.0 =
88
  * Initial release
89
+
90
+ == Upgrade Notice ==
91
+
92
+ = 1.2.0 =
93
+ Fixes plugin jQuery UI script incompatibility for WordPress 3.1
screenshot-2.jpg CHANGED
Binary file