wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17125: LJSUP-6358.

Committer: gprochaev
LJSUP-6358.

Add description.

U   trunk/cgi-bin/ljuserpics.pl
Modified: trunk/cgi-bin/ljuserpics.pl
===================================================================
--- trunk/cgi-bin/ljuserpics.pl	2010-08-16 08:09:54 UTC (rev 17124)
+++ trunk/cgi-bin/ljuserpics.pl	2010-08-16 08:57:23 UTC (rev 17125)
@@ -585,7 +585,28 @@
     return $result;
 }
 
-# actual method
+# <LJFUNC>
+# name: _get_upf_scaled
+# des: Crop and scale images
+# agrs:
+#   size - max width of target image or [ width x height, ...]
+#   x1, x2, y1, y2 - coords in a source image for crop
+#   border (bool) - is it need to add border to target image
+#   save_to_FB (bool) - is it need to save to FB (FotoBilder)
+#   fb_gallery - gallery to save target image
+#   auto_crop - is it need to auto_crop image
+#####
+# Sample for use as auto-crop:
+#
+#    my $res = LJ::get_upf_scaled(
+#            source      => \$content,
+#            size        => [ "140x105" ],
+#            save_to_FB  => 1,
+#            fb_gallery  => 'test_gal',
+#            auto_crop   => 1,
+#    );
+#####
+# </LJFUNC>
 sub _get_upf_scaled
 {
     my %opts = @_;

Tags: livejournal, pl, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments